com.jabberwookie.ns.jabber
Class Error
java.lang.Object
|
+--XMLElement
|
+--com.jabberwookie.ns.jabber.Error
- public class Error
- extends XMLElement
This class is pretty useless for recieving error messages since they don't
have a namespace that this can be mapped to. However, it's very usefull
for sending error messages.
Code Description
400 Bad Request
401 Unauthorized
402 Payment Required
403 Forbidden
404 Not Found
405 Not Allowed
406 Not Acceptable
407 Registration Required
408 Request Timeout
409 Username Not Available
500 Internal Server Error
501 Not Implemented
502 Remote Server Error
503 Service Unavailable
504 Remote Server Timeout
- Author:
- smeiners
- See Also:
- Serialized Form
|
Constructor Summary |
Error()
Creates a new instance of Error |
Error(int code)
Creates a new instance of Error |
Error(int code,
java.lang.String message)
Creates a new instance of Error |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BAD_REQUEST
public static final int BAD_REQUEST
- See Also:
- Constant Field Values
UNAUTHORIZED
public static final int UNAUTHORIZED
- See Also:
- Constant Field Values
PAYMENT_REQUIRED
public static final int PAYMENT_REQUIRED
- See Also:
- Constant Field Values
FORBIDDEN
public static final int FORBIDDEN
- See Also:
- Constant Field Values
NOT_FOUND
public static final int NOT_FOUND
- See Also:
- Constant Field Values
NOT_ALLOWED
public static final int NOT_ALLOWED
- See Also:
- Constant Field Values
NOT_ACCEPTABLE
public static final int NOT_ACCEPTABLE
- See Also:
- Constant Field Values
REGISTRATION_REQUIRED
public static final int REGISTRATION_REQUIRED
- See Also:
- Constant Field Values
REQUEST_TIMEOUT
public static final int REQUEST_TIMEOUT
- See Also:
- Constant Field Values
USERNAME_NOT_AVAILABLE
public static final int USERNAME_NOT_AVAILABLE
- See Also:
- Constant Field Values
INTERNAL_SERVER_ERROR
public static final int INTERNAL_SERVER_ERROR
- See Also:
- Constant Field Values
NOT_IMPLEMENTED
public static final int NOT_IMPLEMENTED
- See Also:
- Constant Field Values
REMOTE_SERVER_ERROR
public static final int REMOTE_SERVER_ERROR
- See Also:
- Constant Field Values
SERVICE_UNAVAILABLE
public static final int SERVICE_UNAVAILABLE
- See Also:
- Constant Field Values
REMOTE_SERVER_TIMEOUT
public static final int REMOTE_SERVER_TIMEOUT
- See Also:
- Constant Field Values
Error
public Error()
- Creates a new instance of Error
Error
public Error(int code)
- Creates a new instance of Error
Error
public Error(int code,
java.lang.String message)
- Creates a new instance of Error
setCode
public void setCode(int code)
getCode
public int getCode()
setMessage
public void setMessage(java.lang.String message)
setMessage
public void setMessage(int code)
getMessage
public java.lang.String getMessage()