Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.teleal.cling.protocol.sync
Class SendingAction

    java.lang.Object
      org.teleal.cling.protocol.SendingAsync
          org.teleal.cling.protocol.SendingSync<OutgoingActionRequestMessage,IncomingActionResponseMessage>
              org.teleal.cling.protocol.sync.SendingAction

All Implemented Interfaces:
  Runnable

    public class SendingAction

extends SendingSync<OutgoingActionRequestMessage,IncomingActionResponseMessage>

Sending control message, transforming a local `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.teleal.cling.model.action.ActionException)`.

Author:
  Christian Bauer

Field Summary
`protected ActionInvocation` | `actionInvocation`

Fields inherited from class org.teleal.cling.protocol.SendingSync
`outputMessage`

Constructor Summary
`SendingAction(UpnpService upnpService, ActionInvocation actionInvocation, URL controlURL)`

Method Summary
`protected IncomingActionResponseMessage` | `executeSync()`
`protected void` | `handleResponse(IncomingActionResponseMessage responseMsg)`
`protected void` | `handleResponseFailure(IncomingActionResponseMessage responseMsg)`
`protected IncomingActionResponseMessage` | `invokeRemote(OutgoingActionRequestMessage requestMessage)`
`protected StreamResponseMessage` | `sendRemoteRequest(OutgoingActionRequestMessage requestMessage)`

Methods inherited from class org.teleal.cling.protocol.SendingSync
`execute, getInputMessage, getOutputMessage, toString`

Methods inherited from class org.teleal.cling.protocol.SendingAsync
`getUpnpService, run`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Field Detail

### actionInvocation

    protected final ActionInvocation actionInvocation

Constructor Detail

### SendingAction

    public SendingAction(UpnpService upnpService,
                         ActionInvocation actionInvocation,
                         URL controlURL)

Method Detail

### executeSync

    protected IncomingActionResponseMessage executeSync()

  Specified by:
    `executeSync` in class `SendingSync<OutgoingActionRequestMessage,IncomingActionResponseMessage>`

### invokeRemote

    protected IncomingActionResponseMessage invokeRemote(OutgoingActionRequestMessage requestMessage)

### sendRemoteRequest

    protected StreamResponseMessage sendRemoteRequest(OutgoingActionRequestMessage requestMessage)
                                               throws ActionException

  Throws:
    `ActionException`

### handleResponse

    protected void handleResponse(IncomingActionResponseMessage responseMsg)
                           throws ActionException

  Throws:
    `ActionException`

### handleResponseFailure

    protected void handleResponseFailure(IncomingActionResponseMessage responseMsg)
                                  throws ActionException

  Throws:
    `ActionException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2011 Teleal GmbH, Switzerland. All Rights Reserved.