com.yy.httpproxy.requester.RequestInfo Maven / Gradle / Ivy
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();
}
}