|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.consol.citrus.message.AbstractSyncMessageSender
com.consol.citrus.http.message.HttpMessageSender
public class HttpMessageSender
Message sender implementation sending messages over Http. Note: Message sender is only using POST request method to publish messages to the service endpoint.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.consol.citrus.message.MessageSender |
|---|
MessageSender.ErrorHandlingStrategy |
| Field Summary |
|---|
| Fields inherited from class com.consol.citrus.message.AbstractSyncMessageSender |
|---|
log, replyMessageHandler |
| Constructor Summary | |
|---|---|
HttpMessageSender()
Default constructor. |
|
HttpMessageSender(org.springframework.http.client.ClientHttpRequestFactory requestFactory)
Constructor using custom client request factory. |
|
HttpMessageSender(org.springframework.web.client.RestTemplate restTemplate)
Constructor using custom rest template. |
|
| Method Summary | |
|---|---|
String |
getCharset()
Gets the charset. |
String |
getContentType()
Gets the contentType. |
EndpointUriResolver |
getEndpointUriResolver()
Gets the endpointUriResolver. |
MessageSender.ErrorHandlingStrategy |
getErrorHandlingStrategy()
Gets the errorHandlingStrategy. |
org.springframework.integration.mapping.HeaderMapper<org.springframework.http.HttpHeaders> |
getHeaderMapper()
Gets the headerMapper. |
org.springframework.http.HttpMethod |
getRequestMethod()
Gets the requestMethod. |
String |
getRequestUrl()
Get the complete request URL. |
org.springframework.web.client.RestTemplate |
getRestTemplate()
Gets the restTemplate. |
void |
send(org.springframework.integration.Message<?> message)
Sends the message. |
void |
setCharset(String charset)
Sets the charset. |
void |
setContentType(String contentType)
Sets the contentType. |
void |
setEndpointUriResolver(EndpointUriResolver endpointUriResolver)
Sets the endpoint uri resolver. |
void |
setErrorHandlingStrategy(MessageSender.ErrorHandlingStrategy errorHandlingStrategy)
Sets the errorHandlingStrategy. |
void |
setHeaderMapper(org.springframework.integration.mapping.HeaderMapper<org.springframework.http.HttpHeaders> headerMapper)
Sets the headerMapper. |
void |
setInterceptors(List<org.springframework.http.client.ClientHttpRequestInterceptor> interceptors)
Sets the interceptors on this implementation's rest template. |
void |
setRequestMethod(org.springframework.http.HttpMethod requestMethod)
Sets the requestMethod. |
void |
setRequestUrl(String url)
Set the complete request URL. |
void |
setRestTemplate(org.springframework.web.client.RestTemplate restTemplate)
Sets the restTemplate. |
| Methods inherited from class com.consol.citrus.message.AbstractSyncMessageSender |
|---|
getActor, getCorrelator, getReplyMessageHandler, informReplyMessageHandler, setActor, setCorrelator, setReplyMessageHandler |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpMessageSender()
public HttpMessageSender(org.springframework.http.client.ClientHttpRequestFactory requestFactory)
requestFactory - the custom request factory.public HttpMessageSender(org.springframework.web.client.RestTemplate restTemplate)
restTemplate - the custom rest template.| Method Detail |
|---|
public void send(org.springframework.integration.Message<?> message)
MessageSender
message - the message object to send.
CitrusRuntimeExceptionMessageSender.send(org.springframework.integration.Message)public String getRequestUrl()
public void setRequestUrl(String url)
url - the url to setpublic void setEndpointUriResolver(EndpointUriResolver endpointUriResolver)
endpointUriResolver - the endpointUriResolver to setpublic void setRestTemplate(org.springframework.web.client.RestTemplate restTemplate)
restTemplate - the restTemplate to setpublic void setRequestMethod(org.springframework.http.HttpMethod requestMethod)
requestMethod - the requestMethod to setpublic void setCharset(String charset)
charset - the charset to setpublic void setHeaderMapper(org.springframework.integration.mapping.HeaderMapper<org.springframework.http.HttpHeaders> headerMapper)
headerMapper - the headerMapper to setpublic void setContentType(String contentType)
contentType - the contentType to setpublic MessageSender.ErrorHandlingStrategy getErrorHandlingStrategy()
public void setErrorHandlingStrategy(MessageSender.ErrorHandlingStrategy errorHandlingStrategy)
errorHandlingStrategy - the errorHandlingStrategy to setpublic org.springframework.http.HttpMethod getRequestMethod()
public String getCharset()
public String getContentType()
public org.springframework.web.client.RestTemplate getRestTemplate()
public EndpointUriResolver getEndpointUriResolver()
public org.springframework.integration.mapping.HeaderMapper<org.springframework.http.HttpHeaders> getHeaderMapper()
public void setInterceptors(List<org.springframework.http.client.ClientHttpRequestInterceptor> interceptors)
interceptors - the interceptors to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||