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: 777800 $
Fields inherited from interface org.apache.camel.Exchange |
AGGREGATED_INDEX, AGGREGATED_SIZE, ASYNC_WAIT, BATCH_COMPLETE, BATCH_INDEX, BATCH_SIZE, BEAN_HOLDER, BEAN_METHOD_NAME, BEAN_MULTI_PARAMETER_ARRAY, CHARSET_NAME, CONTENT_TYPE, DATASET_INDEX, EXCEPTION_CAUGHT, EXCEPTION_HANDLED, FAILURE_HANDLED, FILE_LOCAL_WORK_PATH, FILE_NAME, FILE_NAME_ONLY, FILE_NAME_PRODUCED, FILE_PARENT, FILE_PATH, FILTERED, HTTP_CHARACTER_ENCODING, HTTP_METHOD, HTTP_PATH, HTTP_QUERY, HTTP_RESPONSE_CODE, HTTP_URI, INTERCEPTED_ENDPOINT, LOG_DEBUG_BODY_MAX_CHARS, LOOP_INDEX, LOOP_SIZE, MULTICAST_INDEX, ON_COMPLETION, REDELIVERED, REDELIVERY_COUNTER, ROLLBACK_ONLY, ROUTE_STOP, SPLIT_INDEX, SPLIT_SIZE, TIMER_FIRED_TIME, TIMER_NAME, TIMER_PERIOD, TIMER_TIME, TRANSACTED |
Methods inherited from class org.apache.camel.impl.DefaultExchange |
addOnCompletion, configureMessage, copy, copyFrom, createExchangeId, createFaultMessage, createInMessage, createOutMessage, getContext, getException, getException, getExchangeId, getFault, getFault, getFromEndpoint, getIn, getOut, getOut, getPattern, getProperties, getProperty, getProperty, getUnitOfWork, hasFault, hasOut, isFailed, isRollbackOnly, isTransacted, newCopy, newInstance, removeFault, removeProperty, setException, setExchangeId, setFault, setFromEndpoint, setIn, setOut, setPattern, setProperties, setProperty, setUnitOfWork, 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.