protected class DefaultService.ServiceMessageListener extends DefaultIncomingMessageListener
credentialInfo| Constructor and Description |
|---|
ServiceMessageListener(CredentialInfo credentialInfo) |
| Modifier and Type | Method and Description |
|---|---|
EventSource |
getEvent(java.lang.String action) |
OperationDescription |
getOperation(java.lang.String actionName)
Returns an operation for a given wsa:Action.
|
GetMetadataResponseMessage |
handle(GetMetadataMessage getMetadata,
ConnectionInfo connectionInfo)
Receives an incoming get metadata message.
|
GetStatusResponseMessage |
handle(GetStatusMessage getStatus,
ConnectionInfo connectionInfo)
Receives an incoming get-status message (WS-Eventing).
|
InvokeMessage |
handle(InvokeMessage invokeRequest,
ConnectionInfo connectionInfo)
Receives an incoming invoke request.
|
RenewResponseMessage |
handle(RenewMessage renew,
ConnectionInfo connectionInfo)
Receives an incoming renew message (WS-Eventing).
|
SubscribeResponseMessage |
handle(SubscribeMessage subscribe,
boolean useReferenceParameterMode,
ConnectionInfo connectionInfo)
Receives an incoming subscribe message.
|
UnsubscribeResponseMessage |
handle(UnsubscribeMessage unsubscribe,
ConnectionInfo connectionInfo)
Receives an incoming unsubscribe message (WS-Eventing).
|
getCredentialInfo, handle, handle, handle, handle, handle, handlepublic ServiceMessageListener(CredentialInfo credentialInfo)
public GetMetadataResponseMessage handle(GetMetadataMessage getMetadata, ConnectionInfo connectionInfo) throws SOAPException, AuthorizationException
IncomingMessageListenerGetMetadataResponseMessage if processing the get metadata request succeeded. Must throw a
SOAPException describing the failure otherwise.handle in interface IncomingMessageListenerhandle in class DefaultIncomingMessageListenergetMetadata - the incoming request to processconnectionInfo - protocol (aka. technology) specific data associated with the incoming message, e.g. source and target
addresses or other transport-related informationgetMetadata requestSOAPException - if processing the incoming metadata request fails, e.g. because this instance can not handle get metadata
messages or the request includes unexpected content, etc.AuthorizationExceptionpublic SubscribeResponseMessage handle(SubscribeMessage subscribe, boolean useReferenceParameterMode, ConnectionInfo connectionInfo) throws SOAPException
IncomingMessageListenerSubscribeResponseMessage or
throws a SOAPException if processing the incoming request fails for any reason.handle in interface IncomingMessageListenerhandle in class DefaultIncomingMessageListenersubscribe - the incoming subscribe request to processconnectionInfo - protocol (aka. technology) specific data associated with the incoming message, e.g. source and target
addresses or other transport-related informationSOAPException - if processing the subscribe request fails for any reason, e.g. when this endpoint can not handle
subscribe requests, or the request's content is malformed, etc.public GetStatusResponseMessage handle(GetStatusMessage getStatus, ConnectionInfo connectionInfo) throws SOAPException
IncomingMessageListenerGetStatusResponseMessage or throws a SOAPException if processing the incoming request
fails for some reason.handle in interface IncomingMessageListenerhandle in class DefaultIncomingMessageListenergetStatus - the incoming get-status request to processconnectionInfo - protocol (aka. technology) specific data associated with the incoming message, e.g. source and target
addresses or other transport-related informationSOAPException - if processing the get-status request fails for some reason, e.g. when this endpoint cannot handle
get-status requests, or the request's content is malformed, etc.public RenewResponseMessage handle(RenewMessage renew, ConnectionInfo connectionInfo) throws SOAPException
IncomingMessageListenerRenewResponseMessage or throws a SOAPException if processing the incoming request
fails for any reason.handle in interface IncomingMessageListenerhandle in class DefaultIncomingMessageListenerrenew - the incoming renew request to processconnectionInfo - protocol (aka. technology) specific data associated with the incoming message, e.g. source and target
addresses or other transport-related informationSOAPException - if processing the renew request fails for some reason, e.g. when this endpoint cannot handle renew
requests, or the request's content is malformed, etc.public UnsubscribeResponseMessage handle(UnsubscribeMessage unsubscribe, ConnectionInfo connectionInfo) throws SOAPException
IncomingMessageListenerUnsubscribeResponseMessage or throws a SOAPException if processing the incoming
request fails for any reason.handle in interface IncomingMessageListenerhandle in class DefaultIncomingMessageListenerunsubscribe - the incoming unsubscribe request to processconnectionInfo - protocol (aka. technology) specific data associated with the incoming message, e.g. source and target
addresses or other transport-related informationSOAPException - if processing the unsubscribe request fails for some reason, e.g. when this endpoint can not handle
unsubscribe requests, or the request's content is malformed, etc.public InvokeMessage handle(InvokeMessage invokeRequest, ConnectionInfo connectionInfo) throws SOAPException
IncomingMessageListenernull, whereas for a request-response operation, the returned
InvokeMessage must contain a suitable response to the incoming request.
This method may throw a SOAPException under two distinct circumstances:
SOAPException is expected to correspond
to either one of those declared faults
IncomingMessageListener instance being unable to handle invoke requests:
then, the SOAPException must describe the exact failure reason in a way
independent from the actual declaration of the involved web service operation
handle in interface IncomingMessageListenerhandle in class DefaultIncomingMessageListenerinvokeRequest - the incoming invoke request to processconnectionInfo - protocol (aka. technology) specific data associated with the incoming message, e.g. source and target
addresses or other transport-related informationnull for a one-way operation, or a response to the incoming requestSOAPException - either because processing the invoke request failed with an user-defined failure reason (i.e. a fault
declared by the concerned web service operation) or because of a more generic error such as this instance
being unable to process incoming invoke requests, or malformed request content, etc.public OperationDescription getOperation(java.lang.String actionName)
IncomingMessageListener
The result can be null for an implementation which does not use an operation at
all.
getOperation in interface IncomingMessageListenergetOperation in class DefaultIncomingMessageListeneractionName - the wsa:Action which should be used to retrieve the operation.public EventSource getEvent(java.lang.String action)
getEvent in interface IncomingMessageListenergetEvent in class DefaultIncomingMessageListener