public class SendingAction extends SendingSync<OutgoingActionRequestMessage,IncomingActionResponseMessage>
ActionInvocation
.
Writes the outgoing message's body with the SOAPActionProcessor
.
This protocol will return null
if no response was received from the control target host.
In all other cases, even if only the processing of message content failed, this protocol will
return an IncomingActionResponseMessage
. Any error
details of a failed response (UpnpResponse.isFailed()
) are
available with
ActionInvocation.setFailure(org.fourthline.cling.model.action.ActionException)
.
Modifier and Type | Field and Description |
---|---|
protected ActionInvocation |
actionInvocation |
outputMessage
Constructor and Description |
---|
SendingAction(UpnpService upnpService,
ActionInvocation actionInvocation,
URL controlURL) |
Modifier and Type | Method and Description |
---|---|
protected IncomingActionResponseMessage |
executeSync() |
protected void |
handleResponse(IncomingActionResponseMessage responseMsg) |
protected void |
handleResponseFailure(IncomingActionResponseMessage responseMsg) |
protected IncomingActionResponseMessage |
invokeRemote(OutgoingActionRequestMessage requestMessage) |
protected StreamResponseMessage |
sendRemoteRequest(OutgoingActionRequestMessage requestMessage) |
execute, getInputMessage, getOutputMessage, toString
getUpnpService, run
protected final ActionInvocation actionInvocation
public SendingAction(UpnpService upnpService, ActionInvocation actionInvocation, URL controlURL)
protected IncomingActionResponseMessage executeSync() throws RouterException
executeSync
in class SendingSync<OutgoingActionRequestMessage,IncomingActionResponseMessage>
RouterException
protected IncomingActionResponseMessage invokeRemote(OutgoingActionRequestMessage requestMessage) throws RouterException
RouterException
protected StreamResponseMessage sendRemoteRequest(OutgoingActionRequestMessage requestMessage) throws ActionException, RouterException
ActionException
RouterException
protected void handleResponse(IncomingActionResponseMessage responseMsg) throws ActionException
ActionException
protected void handleResponseFailure(IncomingActionResponseMessage responseMsg) throws ActionException
ActionException
Copyright © 2016 4th Line GmbH, Switzerland. All rights reserved.