org.ocap.hn.upnp.common
Class UPnPErrorResponse
java.lang.Object
org.ocap.hn.upnp.common.UPnPResponse
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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.