Spring Integration

org.springframework.integration.http
Class DefaultOutboundRequestMapper

java.lang.Object
  extended by org.springframework.integration.http.DefaultOutboundRequestMapper
All Implemented Interfaces:
OutboundRequestMapper, OutboundMessageMapper<HttpEntity<?>>

public class DefaultOutboundRequestMapper
extends Object
implements OutboundRequestMapper

Default implementation of OutboundRequestMapper.

Since:
1.0.2
Author:
Mark Fisher

Constructor Summary
DefaultOutboundRequestMapper()
           
 
Method Summary
 HttpEntity<?> fromMessage(Message<?> message)
           
 void setCharset(String charset)
          Specify the charset name to use for converting String-typed payloads to bytes.
 void setExtractPayload(boolean extractPayload)
          Specify whether the outbound message's payload should be extracted when preparing the request body.
 void setHttpMethod(HttpMethod httpMethod)
          Specify the HttpMethod that will be used when executing requests.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultOutboundRequestMapper

public DefaultOutboundRequestMapper()
Method Detail

setHttpMethod

public void setHttpMethod(HttpMethod httpMethod)
Specify the HttpMethod that will be used when executing requests.


setExtractPayload

public void setExtractPayload(boolean extractPayload)
Specify whether the outbound message's payload should be extracted when preparing the request body. Otherwise the Message instance itself will be serialized. The default value is true.


setCharset

public void setCharset(String charset)
Specify the charset name to use for converting String-typed payloads to bytes. The default is 'UTF-8'.


fromMessage

public HttpEntity<?> fromMessage(Message<?> message)
                          throws Exception
Specified by:
fromMessage in interface OutboundMessageMapper<HttpEntity<?>>
Throws:
Exception

Spring Integration

Copyright © 2010. All Rights Reserved.