org.apache.cocoon.util
Class RequestForwardingHttpMethod

java.lang.Object
  extended by org.apache.commons.httpclient.HttpMethodBase
      extended by org.apache.commons.httpclient.methods.GetMethod
          extended by org.apache.commons.httpclient.methods.ExpectContinueMethod
              extended by org.apache.commons.httpclient.methods.EntityEnclosingMethod
                  extended by org.apache.cocoon.util.RequestForwardingHttpMethod
All Implemented Interfaces:
org.apache.commons.httpclient.HttpMethod

public class RequestForwardingHttpMethod
extends org.apache.commons.httpclient.methods.EntityEnclosingMethod

This is a generic and externally configurable method, to forward any Request to a server.

Version:
$Id: RequestForwardingHttpMethod.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Gianugo Rabellino

Field Summary
 
Fields inherited from class org.apache.commons.httpclient.methods.EntityEnclosingMethod
CONTENT_LENGTH_AUTO, CONTENT_LENGTH_CHUNKED
 
Fields inherited from class org.apache.commons.httpclient.HttpMethodBase
USER_AGENT
 
Constructor Summary
RequestForwardingHttpMethod(HttpServletRequest req, org.apache.commons.httpclient.HttpURL destination)
           
 
Method Summary
 String getName()
          Dinamically get the method.
 
Methods inherited from class org.apache.commons.httpclient.methods.EntityEnclosingMethod
addContentLengthRequestHeader, clearRequestBody, generateRequestBody, getFollowRedirects, getRequestBody, getRequestBodyAsString, getRequestContentLength, hasRequestContent, recycle, setFollowRedirects, setRequestBody, setRequestBody, setRequestContentLength, writeRequestBody
 
Methods inherited from class org.apache.commons.httpclient.methods.ExpectContinueMethod
addRequestHeaders, getUseExpectHeader, setUseExpectHeader
 
Methods inherited from class org.apache.commons.httpclient.methods.GetMethod
getFileData, getTempDir, getTempFile, getUseDisk, readResponseBody, setFileData, setTempDir, setTempFile, setUseDisk
 
Methods inherited from class org.apache.commons.httpclient.HttpMethodBase
addAuthorizationRequestHeader, addCookieRequestHeader, addHostRequestHeader, addProxyAuthorizationRequestHeader, addProxyConnectionHeader, addRequestHeader, addRequestHeader, addResponseFooter, addUserAgentRequestHeader, checkNotUsed, checkUsed, execute, fakeResponse, generateRequestLine, getAuthenticationRealm, getContentCharSet, getDoAuthentication, getHostConfiguration, getMethodRetryHandler, getPath, getProxyAuthenticationRealm, getQueryString, getRecoverableExceptionCount, getRequestCharSet, getRequestHeader, getRequestHeaderGroup, getRequestHeaders, getResponseBody, getResponseBodyAsStream, getResponseBodyAsString, getResponseCharSet, getResponseContentLength, getResponseFooter, getResponseFooters, getResponseHeader, getResponseHeaderGroup, getResponseHeaders, getResponseStream, getResponseTrailerHeaderGroup, getStatusCode, getStatusLine, getStatusText, getURI, hasBeenUsed, isConnectionCloseForced, isHttp11, isStrictMode, processResponseBody, processResponseHeaders, processStatusLine, readResponse, readResponseHeaders, readStatusLine, releaseConnection, removeRequestHeader, responseBodyConsumed, setConnectionCloseForced, setDoAuthentication, setHostConfiguration, setHttp11, setMethodRetryHandler, setPath, setQueryString, setQueryString, setRequestHeader, setRequestHeader, setResponseStream, setStrictMode, shouldCloseConnection, validate, writeRequest, writeRequestHeaders, writeRequestLine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestForwardingHttpMethod

public RequestForwardingHttpMethod(HttpServletRequest req,
                                   org.apache.commons.httpclient.HttpURL destination)
                            throws IOException
Throws:
IOException
Method Detail

getName

public String getName()
Dinamically get the method.

Specified by:
getName in interface org.apache.commons.httpclient.HttpMethod
Overrides:
getName in class org.apache.commons.httpclient.methods.GetMethod
See Also:
HttpMethod.getName()


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.