org.springframework.integration.http
Class DefaultInboundRequestMapper

java.lang.Object
  extended by org.springframework.integration.http.DefaultInboundRequestMapper
All Implemented Interfaces:
InboundRequestMapper, InboundMessageMapper<javax.servlet.http.HttpServletRequest>

public class DefaultInboundRequestMapper
extends java.lang.Object
implements InboundRequestMapper

Default implementation of InboundRequestMapper for inbound HttpServletRequests. The request will be mapped according to the following rules:

In all cases, the original request headers will be passed in the MessageHeaders. Likewise, the following headers will be added:

Since:
1.0.2
Author:
Mark Fisher

Constructor Summary
DefaultInboundRequestMapper()
           
 
Method Summary
 void setMultipartCharset(java.lang.String multipartCharset)
          Specify the charset name to use when converting multipart file content into Strings.
 void setMultipartResolver(org.springframework.web.multipart.MultipartResolver multipartResolver)
          Specify the MultipartResolver to use when checking requests.
 Message<?> toMessage(javax.servlet.http.HttpServletRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultInboundRequestMapper

public DefaultInboundRequestMapper()
Method Detail

setMultipartResolver

public void setMultipartResolver(org.springframework.web.multipart.MultipartResolver multipartResolver)
Specify the MultipartResolver to use when checking requests. If no resolver is provided, this mapper will not support multipart requests.


setMultipartCharset

public void setMultipartCharset(java.lang.String multipartCharset)
Specify the charset name to use when converting multipart file content into Strings.


toMessage

public Message<?> toMessage(javax.servlet.http.HttpServletRequest request)
                     throws java.lang.Exception
Specified by:
toMessage in interface InboundMessageMapper<javax.servlet.http.HttpServletRequest>
Throws:
java.lang.Exception