|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mina.proxy.handlers.ProxyRequest
org.apache.mina.proxy.handlers.http.HttpProxyRequest
public class HttpProxyRequest
HttpProxyRequest.java - Wrapper class for HTTP requests.
| Field Summary | |
|---|---|
String |
httpURI
|
String |
httpVerb
|
| Constructor Summary | |
|---|---|
HttpProxyRequest(InetSocketAddress endpointAddress)
|
|
HttpProxyRequest(InetSocketAddress endpointAddress,
String httpVersion)
|
|
HttpProxyRequest(InetSocketAddress endpointAddress,
String httpVersion,
Map<String,List<String>> headers)
|
|
HttpProxyRequest(String httpURI)
|
|
HttpProxyRequest(String httpURI,
String httpVersion)
|
|
HttpProxyRequest(String httpVerb,
String httpURI,
String httpVersion)
|
|
HttpProxyRequest(String httpVerb,
String httpURI,
String httpVersion,
Map<String,List<String>> headers)
|
|
| Method Summary | |
|---|---|
void |
checkRequiredProperty(String propertyName)
Check if the property is set otherwise throw a ProxyAuthException. |
Map<String,List<String>> |
getHeaders()
HTTP headers. |
String |
getHost()
Returns the host to which we are connecting. |
String |
getHttpURI()
The request URI. |
String |
getHttpVerb()
The request verb. |
String |
getHttpVersion()
The HTTP version. |
Map<String,String> |
getProperties()
Get the additional properties. |
void |
setHeaders(Map<String,List<String>> headers)
Set the HTTP headers. |
void |
setHttpVersion(String httpVersion)
Sets the HTTP version. |
void |
setProperties(Map<String,String> properties)
Set the additional properties. |
String |
toHttpString()
Returns the string representation of the HTTP request . |
| Methods inherited from class org.apache.mina.proxy.handlers.ProxyRequest |
|---|
getEndpointAddress, setEndpointAddress |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final String httpVerb
public final String httpURI
| Constructor Detail |
|---|
public HttpProxyRequest(InetSocketAddress endpointAddress)
public HttpProxyRequest(InetSocketAddress endpointAddress,
String httpVersion)
public HttpProxyRequest(InetSocketAddress endpointAddress,
String httpVersion,
Map<String,List<String>> headers)
public HttpProxyRequest(String httpURI)
public HttpProxyRequest(String httpURI,
String httpVersion)
public HttpProxyRequest(String httpVerb,
String httpURI,
String httpVersion)
public HttpProxyRequest(String httpVerb,
String httpURI,
String httpVersion,
Map<String,List<String>> headers)
| Method Detail |
|---|
public final String getHttpVerb()
public String getHttpVersion()
public void setHttpVersion(String httpVersion)
public final String getHost()
public final String getHttpURI()
public final Map<String,List<String>> getHeaders()
public final void setHeaders(Map<String,List<String>> headers)
public Map<String,String> getProperties()
public void setProperties(Map<String,String> properties)
public void checkRequiredProperty(String propertyName)
throws ProxyAuthException
ProxyAuthException.
ProxyAuthExceptionpublic String toHttpString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||