org.ocap.hn.upnp.common
Class UPnPGeneralErrorResponse
java.lang.Object
org.ocap.hn.upnp.common.UPnPResponse
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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.
getErrorCode
public int getErrorCode()
- Get the error code.
- Returns:
- The error code for this error response.
Copyright © 2011. All Rights Reserved.