org.apache.camel.component.http
Class HttpExchange

java.lang.Object
  extended by org.apache.camel.impl.DefaultExchange
      extended by org.apache.camel.component.http.HttpExchange
All Implemented Interfaces:
Exchange

public class HttpExchange
extends DefaultExchange

Represents a HTTP exchange which exposes the underlying HTTP abtractions via getRequest() and getResponse()

Version:
$Revision: 684539 $

Field Summary
 
Fields inherited from class org.apache.camel.impl.DefaultExchange
context
 
Fields inherited from interface org.apache.camel.Exchange
AGGREGATED_COUNT, CHARSET_NAME, EXCEPTION_HANDLED_PROPERTY
 
Constructor Summary
HttpExchange(HttpEndpoint endpoint, ExchangePattern pattern)
           
HttpExchange(HttpEndpoint endpoint, HttpServletRequest request, HttpServletResponse response)
           
 
Method Summary
 HttpEndpoint getEndpoint()
           
protected static ExchangePattern getPatternFromRequest(HttpServletRequest request)
           
 HttpServletRequest getRequest()
          Returns the underlying Servlet request for inbound HTTP requests
 HttpServletResponse getResponse()
          Returns the underlying Servlet response for inbound HTTP requests
 
Methods inherited from class org.apache.camel.impl.DefaultExchange
configureMessage, copy, copyFrom, createFaultMessage, createInMessage, createOutMessage, getContext, getException, getExchangeId, getFault, getFault, getIn, getOut, getOut, getPattern, getProperties, getProperty, getProperty, getUnitOfWork, isFailed, isTransacted, newInstance, removeProperty, setException, setExchangeId, setFault, setIn, setOut, setPattern, setProperties, setProperty, setUnitOfWork, throwException, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HttpExchange

public HttpExchange(HttpEndpoint endpoint,
                    ExchangePattern pattern)

HttpExchange

public HttpExchange(HttpEndpoint endpoint,
                    HttpServletRequest request,
                    HttpServletResponse response)
Method Detail

getRequest

public HttpServletRequest getRequest()
Returns the underlying Servlet request for inbound HTTP requests


getResponse

public HttpServletResponse getResponse()
Returns the underlying Servlet response for inbound HTTP requests


getEndpoint

public HttpEndpoint getEndpoint()

getPatternFromRequest

protected static ExchangePattern getPatternFromRequest(HttpServletRequest request)


Apache CAMEL