org.apache.camel.component.http
Class HttpExchange
java.lang.Object
org.apache.camel.impl.DefaultExchange
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 $
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 |
HttpExchange
public HttpExchange(HttpEndpoint endpoint,
ExchangePattern pattern)
HttpExchange
public HttpExchange(HttpEndpoint endpoint,
HttpServletRequest request,
HttpServletResponse response)
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)
Copyright © 2009 Apache Software Foundation. All Rights Reserved.