All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yy.httpproxy.requester.RequestInfo Maven / Gradle / Ivy

There is a newer version: 1.0.45
Show newest version
package com.yy.httpproxy.requester;

import java.util.Map;

/**
 * Created by xuduo on 10/16/15.
 */
public class RequestInfo {

    private String host;
    private int port;
    private String path;
    private Map headers;
    private byte[] body;

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public Map getHeaders() {
        return headers;
    }

    public void setHeaders(Map headers) {
        this.headers = headers;
    }

    public byte[] getBody() {
        return body;
    }

    public void setBody(byte[] body) {
        this.body = body;
    }

    public String getUrl(){
        return  "http://" + getHost() + ":" + getPort() + getPath();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy