org.ocap.hn.upnp.common
Class UPnPResponse

java.lang.Object
  extended by org.ocap.hn.upnp.common.UPnPResponse
Direct Known Subclasses:
UPnPActionResponse, UPnPErrorResponse, UPnPGeneralErrorResponse

public abstract class UPnPResponse
extends Object

This class represents a response to a UPnP action.


Constructor Summary
protected UPnPResponse()
          Protected constructor for the instance.
 
Method Summary
 UPnPActionInvocation getActionInvocation()
          Gets the UPnPActionInvocation that the response is for.
 int getHTTPResponseCode()
          Gets the HTTP response code from the response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UPnPResponse

protected UPnPResponse()
Protected constructor for the instance.

Method Detail

getHTTPResponseCode

public int getHTTPResponseCode()
Gets the HTTP response code from the response.

Returns:
The HTTP response code associated with the response, such as 200 (OK) or 500 (Internal Server Error).

getActionInvocation

public UPnPActionInvocation getActionInvocation()
Gets the UPnPActionInvocation that the response is for.

Returns:
The UPnP action invocation that prompted this response.


Copyright © 2011. All Rights Reserved.