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:
org.apache.camel.Exchange

public class HttpExchange
extends org.apache.camel.impl.DefaultExchange

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

Version:
$Revision: 549890 $

Field Summary
 
Fields inherited from class org.apache.camel.impl.DefaultExchange
context
 
Constructor Summary
HttpExchange(HttpEndpoint endpoint)
           
HttpExchange(HttpEndpoint endpoint, HttpServletRequest request, HttpServletResponse response)
           
 
Method Summary
 HttpEndpoint getEndpoint()
           
 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, createInMessage, createOutMessage, getContext, getException, getExchangeId, getFault, getIn, getOut, getOut, getProperties, getProperty, getProperty, newInstance, setException, setExchangeId, setFault, setHeaders, setIn, setOut, setProperty, 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)

HttpExchange

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

getRequest

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

Returns:
the underlying Servlet request for inbound HTTP requests

getResponse

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

Returns:
the underlying Servlet response for inbound HTTP requests

getEndpoint

public HttpEndpoint getEndpoint()


Copyright © 2007 Apache Software Foundation. All Rights Reserved.