Package org.httpobjects.proxy
Class Proxy
java.lang.Object
org.httpobjects.DSL
org.httpobjects.HttpObject
org.httpobjects.proxy.Proxy
-
Nested Class Summary
Nested classes/interfaces inherited from class org.httpobjects.HttpObject
HttpObject.Events<Id extends Object> -
Field Summary
Fields inherited from class org.httpobjects.DSL
CONTENT_TYPE_CSV, CONTENT_TYPE_HTML, CONTENT_TYPE_JSON, CONTENT_TYPE_TEXT_PLAIN, DEFAULT_HTTP_ENCODING, MOST_WIDELY_SUPPORTED_ENCODING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddRequestHeaders(Request req, org.apache.commons.httpclient.HttpMethodBase method) protected org.apache.commons.httpclient.HttpClientprotected ResponsecreateResponse(org.apache.commons.httpclient.HttpMethodBase method, ResponseCode responseCode, List<HeaderField> headersReturned) protected ResponseexecuteMethod(org.apache.commons.httpclient.HttpClient client, org.apache.commons.httpclient.HttpMethodBase method, Request req) protected List<HeaderField>extractResponseHeaders(org.apache.commons.httpclient.HttpMethodBase method) getBase()protected Stringprotected StringprocessRedirect(String url) protected StringprocessUrl(String url) protected ResponseproxyRequest(Request req, org.apache.commons.httpclient.HttpMethodBase method) voidprotected voidsetRequestRepresentation(Request req, org.apache.commons.httpclient.methods.EntityEnclosingMethod method) protected static final StringstripTrailingSlash(String text) Methods inherited from class org.httpobjects.DSL
ACCEPTED, allowed, BAD_GATEWAY, BAD_GATEWAY, BAD_GATEWAY, BAD_REQUEST, BAD_REQUEST, BasicAuthentication, Bytes, Bytes, classpathResourcesAt, CONFLICT, CONFLICT, CONTINUE, CREATED, Csv, EXPECTATION_FAILED, EXPECTATION_FAILED, File, FORBIDDEN, FORBIDDEN, FromClasspath, FromClasspath, GATEWAY_TIMEOUT, GATEWAY_TIMEOUT, GATEWAY_TIMEOUT, getBytes, GONE, GONE, Html, HtmlFromClasspath, HtmlFromClasspath, HTTP_VERSION_NOT_SUPPORTED, HTTP_VERSION_NOT_SUPPORTED, HTTP_VERSION_NOT_SUPPORTED, INTERNAL_SERVER_ERROR, INTERNAL_SERVER_ERROR, INTERNAL_SERVER_ERROR, Json, Json, LENGTH_REQUIRED, LENGTH_REQUIRED, Location, METHOD_NOT_ALLOWED, METHOD_NOT_ALLOWED, METHOD_NOT_ALLOWED, METHOD_NOT_ALLOWED, NO_CONTENT, NOT_ACCEPTABLE, NOT_ACCEPTABLE, NOT_FOUND, NOT_FOUND, NOT_IMPLEMENTED, NOT_IMPLEMENTED, NOT_IMPLEMENTED, OK, PAYMENT_REQUIRED, PAYMENT_REQUIRED, PRECONDITION_FAILED, PRECONDITION_FAILED, PROXY_AUTHENTICATION_REQUIRED, PROXY_AUTHENTICATION_REQUIRED, REQUEST_ENTITY_TOO_LARGE, REQUEST_ENTITY_TOO_LARGE, REQUEST_TIMEOUT, REQUEST_TIMEOUT, REQUEST_URI_TOO_LONG, REQUEST_URI_TOO_LONG, REQUESTED_RANGE_NOT_SATISFIABLE, REQUESTED_RANGE_NOT_SATISFIABLE, SEE_OTHER, SEE_OTHER, SERVICE_UNAVAILABLE, SERVICE_UNAVAILABLE, SERVICE_UNAVAILABLE, SetCookie, SWITCHING_PROTOCOLS, Text, UNAUTHORIZED, UNAUTHORIZED, UNAUTHORIZED, UNPROCESSABLE_ENTITY, UNPROCESSABLE_ENTITY, UNSUPPORTED_MEDIA_TYPE, UNSUPPORTED_MEDIA_TYPE
-
Constructor Details
-
Proxy
-
Proxy
-
-
Method Details
-
setBase
-
getBase
-
get
- Overrides:
getin classHttpObject
-
delete
- Overrides:
deletein classHttpObject
-
put
- Overrides:
putin classHttpObject
-
patch
- Overrides:
patchin classHttpObject
-
options
- Overrides:
optionsin classHttpObject
-
setRequestRepresentation
protected void setRequestRepresentation(Request req, org.apache.commons.httpclient.methods.EntityEnclosingMethod method) -
post
- Overrides:
postin classHttpObject
-
getQuery
-
processUrl
-
proxyRequest
-
executeMethod
-
createHttpClient
protected org.apache.commons.httpclient.HttpClient createHttpClient() -
addRequestHeaders
-
extractResponseHeaders
protected List<HeaderField> extractResponseHeaders(org.apache.commons.httpclient.HttpMethodBase method) -
processRedirect
-
createResponse
protected Response createResponse(org.apache.commons.httpclient.HttpMethodBase method, ResponseCode responseCode, List<HeaderField> headersReturned) -
stripTrailingSlash
-