org.ocap.hn.upnp.common
Class UPnPGeneralErrorResponse

java.lang.Object
  extended by org.ocap.hn.upnp.common.UPnPResponse
      extended by org.ocap.hn.upnp.common.UPnPGeneralErrorResponse

public class UPnPGeneralErrorResponse
extends UPnPResponse

The class represents a response to an unsuccessfully completed UPnP action, where the server either did not respond, or responded with an HTTP error code other than 500 (Internal Server Error). Instances of this class are constructed by the stack by the UPnPActionHandler, and are passed to a client in the UPnPActionResponseHandler.


Field Summary
static int NETWORK_ERROR
          Indicates that the action was not able to be invoked due to a network error (could not reach server, or other non-timeout network error).
static int NETWORK_TIMEOUT
          Indicates that the server did not respond.
 
Constructor Summary
UPnPGeneralErrorResponse(int errorCode, UPnPActionInvocation action)
          Construct the instance.
 
Method Summary
 int getErrorCode()
          Get the error code.
 
Methods inherited from class org.ocap.hn.upnp.common.UPnPResponse
getActionInvocation, getHTTPResponseCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NETWORK_TIMEOUT

public static final int NETWORK_TIMEOUT
Indicates that the server did not respond.

See Also:
Constant Field Values

NETWORK_ERROR

public static final int NETWORK_ERROR
Indicates that the action was not able to be invoked due to a network error (could not reach server, or other non-timeout network error).

See Also:
Constant Field Values
Constructor Detail

UPnPGeneralErrorResponse

public UPnPGeneralErrorResponse(int errorCode,
                                UPnPActionInvocation action)
Construct the instance.

Parameters:
errorCode - The error code that this general error response is to contain.
action - The UPnPActionInvocation that this general error response is in response to.
Method Detail

getErrorCode

public int getErrorCode()
Get the error code.

Returns:
The error code for this error response.


Copyright © 2011. All Rights Reserved.