|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.integration.http.DefaultOutboundRequestMapper
public class DefaultOutboundRequestMapper
Default implementation of OutboundRequestMapper.
| Constructor Summary | |
|---|---|
DefaultOutboundRequestMapper()
Create a DefaultOutboundRequestMapper with no default URL. |
|
DefaultOutboundRequestMapper(java.net.URL defaultUrl)
Create a DefaultOutboundRequestMapper with the given default URL. |
|
| Method Summary | |
|---|---|
HttpRequest |
fromMessage(Message<?> message)
|
void |
setCharset(java.lang.String charset)
Specify the charset name to use for converting String-typed payloads to bytes. |
void |
setDefaultUrl(java.net.URL defaultUrl)
Specify the default URL to use when the outbound message does not contain a value for the HttpHeaders.REQUEST_URL header. |
void |
setExtractPayload(boolean extractPayload)
Specify whether the outbound message's payload should be extracted when preparing the request body. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultOutboundRequestMapper()
public DefaultOutboundRequestMapper(java.net.URL defaultUrl)
| Method Detail |
|---|
public void setDefaultUrl(java.net.URL defaultUrl)
HttpHeaders.REQUEST_URL header.
This default is optional, but if no value is provided, and a Message
does not contain the header, then a MessageDeliveryException will be
thrown at runtime.
public void setExtractPayload(boolean extractPayload)
true.
public void setCharset(java.lang.String charset)
public HttpRequest fromMessage(Message<?> message)
throws java.lang.Exception
fromMessage in interface OutboundMessageMapper<HttpRequest>java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||