org.ocap.hn.upnp.common
Class UPnPErrorResponse

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

public class UPnPErrorResponse
extends UPnPResponse

The class represents a response to an unsuccessfully completed UPnP action, where the server responded with HTTP code 500 (Internal Server Error). It carries the UPnP errorCode and errorDescription. Instances of this class are constructed by the UPnPActionHandler on a UPnP server, and are passed to a client in the UPnPActionResponseHandler.


Constructor Summary
UPnPErrorResponse(int errorCode, String errorDescription, UPnPActionInvocation action)
          Construct the instance.
 
Method Summary
 int getErrorCode()
          Get the error code.
 String getErrorDescription()
          Get the error description.
 
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
 

Constructor Detail

UPnPErrorResponse

public UPnPErrorResponse(int errorCode,
                         String errorDescription,
                         UPnPActionInvocation action)
Construct the instance.

Parameters:
errorCode - The UPnP errorCode to be used for this error response.
errorDescription - The UPnP errorDescription to be used for this error response.
action - The action invocation that this error response relates to.
Method Detail

getErrorCode

public int getErrorCode()
Get the error code.

Returns:
The error code for this error response.

getErrorDescription

public String getErrorDescription()
Get the error description.

Returns:
The error description for this error response.


Copyright © 2011. All Rights Reserved.