public abstract class ResponseProducerImpl extends ProduceOnlyProducerImp
log| Constructor and Description |
|---|
ResponseProducerImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
endpoint(AdaptrisMessage msg)
Return the endpoint that will be derived from the message.
|
protected boolean |
flushBuffers() |
protected boolean |
forwardConnectionException() |
@NonNull ContentTypeProvider |
getContentTypeProvider()
The Content-Type to send with the response.
|
ProduceDestination |
getDestination()
Deprecated.
|
java.lang.Boolean |
getFlushBuffer() |
java.lang.Boolean |
getForwardConnectionException()
Throw an exception if producing the response fails.
|
@NonNull ResponseHeaderProvider<javax.servlet.http.HttpServletResponse> |
getResponseHeaderProvider()
Additional HTTP headers that will be sent as part of the response.
|
java.lang.Boolean |
getSendPayload()
Send the current payload as part of the response.
|
protected HttpStatusProvider.Status |
getStatus(AdaptrisMessage msg) |
@NonNull HttpStatusProvider |
getStatusProvider()
The HTTP Status.
|
void |
prepare()
Prepare for initialisation.
|
protected boolean |
sendPayload() |
void |
setContentTypeProvider(@NonNull ContentTypeProvider contentTypeProvider)
The Content-Type to send with the response.
|
void |
setDestination(ProduceDestination destination)
Deprecated.
|
void |
setFlushBuffer(java.lang.Boolean flushBuffer) |
void |
setForwardConnectionException(java.lang.Boolean forwardConnectionException)
Throw an exception if producing the response fails.
|
void |
setResponseHeaderProvider(@NonNull ResponseHeaderProvider<javax.servlet.http.HttpServletResponse> responseHeaderProvider)
Additional HTTP headers that will be sent as part of the response.
|
void |
setSendPayload(java.lang.Boolean sendPayload)
Send the current payload as part of the response.
|
void |
setStatusProvider(@NonNull HttpStatusProvider statusProvider)
The HTTP Status.
|
<T extends ResponseProducerImpl> |
withContentTypeProvider(ContentTypeProvider b) |
<T extends ResponseProducerImpl> |
withFlushBuffer(java.lang.Boolean b) |
<T extends ResponseProducerImpl> |
withForwardConnectionException(java.lang.Boolean b) |
<T extends ResponseProducerImpl> |
withResponseHeaderProvider(ResponseHeaderProvider<javax.servlet.http.HttpServletResponse> p) |
<T extends ResponseProducerImpl> |
withSendPayload(java.lang.Boolean b) |
<T extends ResponseProducerImpl> |
withStatusProvider(HttpStatusProvider p) |
doProduce, produce, produce, request, request, request, requestcreateNamecreateQualifier, decode, encode, getEncoder, getIsTrackingEndpoint, getMessageFactory, getUniqueId, handleConnectionException, isTrackingEndpoint, registerConnection, registerEncoderMessageFactory, retrieveConnection, setEncoder, setIsTrackingEndpoint, setMessageFactory, setUniqueId, withMessageFactory, withUniqueIDclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecode, encode, getEncoder, getMessageFactory, handleConnectionException, registerConnection, retrieveConnection, setEncoder, setMessageFactorygetUniqueIdclose, init, start, stopcreateQualifier, isTrackingEndpointpublic void prepare()
throws CoreException
ComponentLifecycleExtensionCoreExceptionpublic java.lang.String endpoint(AdaptrisMessage msg) throws ProduceException
AdaptrisMessageProducerImp
The purpose of this method is to mitigate the number of changes that need to happen because
ProduceDestination is being deprecated; boilerplate code can still be present in the
parent super-classes w/o impacting concrete sub-classes "too much".
endpoint in class AdaptrisMessageProducerImpProduceExceptionAdaptrisMessageProducer.request(AdaptrisMessage, ProduceDestination),
AdaptrisMessageProducer.request(AdaptrisMessage, ProduceDestination, long),
AdaptrisMessageSender.produce(AdaptrisMessage),
AdaptrisMessageSender.produce(AdaptrisMessage, ProduceDestination)public <T extends ResponseProducerImpl> T withStatusProvider(HttpStatusProvider p)
public <T extends ResponseProducerImpl> T withResponseHeaderProvider(ResponseHeaderProvider<javax.servlet.http.HttpServletResponse> p)
public <T extends ResponseProducerImpl> T withForwardConnectionException(java.lang.Boolean b)
protected boolean forwardConnectionException()
protected boolean flushBuffers()
public <T extends ResponseProducerImpl> T withFlushBuffer(java.lang.Boolean b)
protected HttpStatusProvider.Status getStatus(AdaptrisMessage msg)
public <T extends ResponseProducerImpl> T withContentTypeProvider(ContentTypeProvider b)
public <T extends ResponseProducerImpl> T withSendPayload(java.lang.Boolean b)
protected boolean sendPayload()
@NonNull public @NonNull HttpStatusProvider getStatusProvider()
public void setStatusProvider(@NonNull
@NonNull HttpStatusProvider statusProvider)
@NonNull public @NonNull ResponseHeaderProvider<javax.servlet.http.HttpServletResponse> getResponseHeaderProvider()
public void setResponseHeaderProvider(@NonNull
@NonNull ResponseHeaderProvider<javax.servlet.http.HttpServletResponse> responseHeaderProvider)
@NonNull public @NonNull ContentTypeProvider getContentTypeProvider()
public void setContentTypeProvider(@NonNull
@NonNull ContentTypeProvider contentTypeProvider)
public java.lang.Boolean getSendPayload()
Defaults to true if not explicitly configured.
public void setSendPayload(java.lang.Boolean sendPayload)
Defaults to true if not explicitly configured.
public java.lang.Boolean getForwardConnectionException()
When producing the reply to a client; it may be that they have already terminated the
connection. By default client disconnections will not generate a
ServiceException so normal processing continues. Set this to be true
if you want error handling to be triggered in this situation. This defaults to false
unless explicitly configured.
public void setForwardConnectionException(java.lang.Boolean forwardConnectionException)
When producing the reply to a client; it may be that they have already terminated the
connection. By default client disconnections will not generate a
ServiceException so normal processing continues. Set this to be true
if you want error handling to be triggered in this situation. This defaults to false
unless explicitly configured.
public java.lang.Boolean getFlushBuffer()
public void setFlushBuffer(java.lang.Boolean flushBuffer)
@Deprecated public ProduceDestination getDestination()
@Deprecated public void setDestination(ProduceDestination destination)