|
||||||||||
| 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 | |
|---|---|
java.lang.String |
httpURI
The HTTP URI. |
java.lang.String |
httpVerb
The HTTP verb. |
| Constructor Summary | |
|---|---|
HttpProxyRequest(java.net.InetSocketAddress endpointAddress)
Constructor which creates a HTTP/1.0 CONNECT request to the specified endpoint. |
|
HttpProxyRequest(java.net.InetSocketAddress endpointAddress,
java.lang.String httpVersion)
Constructor which creates a CONNECT request to the specified endpoint using the provided protocol version. |
|
HttpProxyRequest(java.net.InetSocketAddress endpointAddress,
java.lang.String httpVersion,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
Constructor which creates a CONNECT request to the specified endpoint using the provided protocol version and setting the requested headers. |
|
HttpProxyRequest(java.lang.String httpURI)
Constructor which creates a HTTP/1.0 GET request to the specified http URI. |
|
HttpProxyRequest(java.lang.String httpURI,
java.lang.String httpVersion)
Constructor which creates a GET request to the specified http URI using the provided protocol version |
|
HttpProxyRequest(java.lang.String httpVerb,
java.lang.String httpURI,
java.lang.String httpVersion)
Constructor which creates a request using the provided HTTP verb targeted at the specified http URI using the provided protocol version. |
|
HttpProxyRequest(java.lang.String httpVerb,
java.lang.String httpURI,
java.lang.String httpVersion,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
Constructor which creates a request using the provided HTTP verb targeted at the specified http URI using the provided protocol version and setting the requested headers. |
|
| Method Summary | |
|---|---|
void |
checkRequiredProperties(java.lang.String... propNames)
Check if the given property(ies) is(are) set. |
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getHeaders()
Returns the HTTP headers. |
java.lang.String |
getHost()
Returns the host to which we are connecting. |
java.lang.String |
getHttpURI()
Returns the request HTTP URI. |
java.lang.String |
getHttpVerb()
Returns the HTTP request verb. |
java.lang.String |
getHttpVersion()
Returns the HTTP version. |
java.util.Map<java.lang.String,java.lang.String> |
getProperties()
Returns additional properties for the request. |
void |
setHeaders(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
Set the HTTP headers. |
void |
setHttpVersion(java.lang.String httpVersion)
Sets the HTTP version. |
void |
setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Set additional properties for the request. |
java.lang.String |
toHttpString()
Returns the string representation of the HTTP request . |
| Methods inherited from class org.apache.mina.proxy.handlers.ProxyRequest |
|---|
getEndpointAddress |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final java.lang.String httpVerb
public final java.lang.String httpURI
| Constructor Detail |
|---|
public HttpProxyRequest(java.net.InetSocketAddress endpointAddress)
endpointAddress - the endpoint to connect to
public HttpProxyRequest(java.net.InetSocketAddress endpointAddress,
java.lang.String httpVersion)
endpointAddress - the endpoint to connect tohttpVersion - the HTTP protocol version
public HttpProxyRequest(java.net.InetSocketAddress endpointAddress,
java.lang.String httpVersion,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
endpointAddress - the endpoint to connect tohttpVersion - the HTTP protocol versionheaders - the additionnal http headerspublic HttpProxyRequest(java.lang.String httpURI)
httpURI - the target URI
public HttpProxyRequest(java.lang.String httpURI,
java.lang.String httpVersion)
httpURI - the target URIhttpVersion - the HTTP protocol version
public HttpProxyRequest(java.lang.String httpVerb,
java.lang.String httpURI,
java.lang.String httpVersion)
httpVerb - the HTTP verb to usehttpURI - the target URIhttpVersion - the HTTP protocol version
public HttpProxyRequest(java.lang.String httpVerb,
java.lang.String httpURI,
java.lang.String httpVersion,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
httpVerb - the HTTP verb to usehttpURI - the target URIhttpVersion - the HTTP protocol versionheaders - the additional http headers| Method Detail |
|---|
public final java.lang.String getHttpVerb()
public java.lang.String getHttpVersion()
public void setHttpVersion(java.lang.String httpVersion)
httpVersion - the HTTP protocol versionpublic final java.lang.String getHost()
public final java.lang.String getHttpURI()
public final java.util.Map<java.lang.String,java.util.List<java.lang.String>> getHeaders()
public final void setHeaders(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
public java.util.Map<java.lang.String,java.lang.String> getProperties()
public void setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
public void checkRequiredProperties(java.lang.String... propNames)
throws ProxyAuthException
ProxyAuthException.
ProxyAuthExceptionpublic java.lang.String toHttpString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||