Modifier and Type | Method and Description |
---|---|
Status |
Response.getStatus()
Returns the status.
|
Modifier and Type | Method and Description |
---|---|
void |
Response.setStatus(Status status)
Sets the status.
|
void |
Response.setStatus(Status status,
String description)
Sets the status.
|
void |
Response.setStatus(Status status,
Throwable throwable)
Sets the status.
|
void |
Response.setStatus(Status status,
Throwable throwable,
String message)
Sets the status.
|
Modifier and Type | Field and Description |
---|---|
static Status |
Status.CLIENT_ERROR_BAD_REQUEST
The request could not be understood by the server due to malformed
syntax.
|
static Status |
Status.CLIENT_ERROR_CONFLICT
The request could not be completed due to a conflict with the current
state of the resource (as experienced in a version control system).
|
static Status |
Status.CLIENT_ERROR_EXPECTATION_FAILED
The user agent expects some behavior of the server (given in an Expect
request-header field), but this expectation could not be met by this
server.
|
static Status |
Status.CLIENT_ERROR_FAILED_DEPENDENCY
This status code means that the method could not be performed on the
resource because the requested action depended on another action and that
action failed.
|
static Status |
Status.CLIENT_ERROR_FORBIDDEN
The server understood the request, but is refusing to fulfill it as it
could be explained in the entity.
|
static Status |
Status.CLIENT_ERROR_GONE
The requested resource is no longer available at the server and no
forwarding address is known.
|
static Status |
Status.CLIENT_ERROR_LENGTH_REQUIRED
The server refuses to accept the request without a defined
Content-Length.
|
static Status |
Status.CLIENT_ERROR_LOCKED
The source or destination resource of a method is locked (or temporarily
involved in another process).
|
static Status |
Status.CLIENT_ERROR_METHOD_NOT_ALLOWED
The method specified in the Request-Line is not allowed for the resource
identified by the Request-URI.
|
static Status |
Status.CLIENT_ERROR_NOT_ACCEPTABLE
The resource identified by the request is only capable of generating
response entities whose content characteristics do not match the user's
requirements (in Accept* headers).
|
static Status |
Status.CLIENT_ERROR_NOT_FOUND
The server has not found anything matching the Request-URI or the server
does not wish to reveal exactly why the request has been refused, or no
other response is applicable.
|
static Status |
Status.CLIENT_ERROR_PAYMENT_REQUIRED
This code is reserved for future use.
|
static Status |
Status.CLIENT_ERROR_PRECONDITION_FAILED
Sent by the server when the user agent asks the server to carry out a
request under certain conditions that are not met.
|
static Status |
Status.CLIENT_ERROR_PROXY_AUTHENTIFICATION_REQUIRED
This code is similar to 401 (Unauthorized), but indicates that the client
must first authenticate itself with the proxy.
|
static Status |
Status.CLIENT_ERROR_REQUEST_ENTITY_TOO_LARGE
The server is refusing to process a request because the request entity is
larger than the server is willing or able to process.
|
static Status |
Status.CLIENT_ERROR_REQUEST_TIMEOUT
Sent by the server when an HTTP client opens a connection, but has never
sent a request (or never sent the blank line that signals the end of the
request).
|
static Status |
Status.CLIENT_ERROR_REQUEST_URI_TOO_LONG
The server is refusing to service the request because the Request-URI is
longer than the server is willing to interpret.
|
static Status |
Status.CLIENT_ERROR_REQUESTED_RANGE_NOT_SATISFIABLE
The request includes a Range request-header field and the selected
resource is too small for any of the byte-ranges to apply.
|
static Status |
Status.CLIENT_ERROR_UNAUTHORIZED
The request requires user authentication.
|
static Status |
Status.CLIENT_ERROR_UNPROCESSABLE_ENTITY
This status code means the server understands the content type of the
request entity (syntactically correct) but was unable to process the
contained instructions.
|
static Status |
Status.CLIENT_ERROR_UNSUPPORTED_MEDIA_TYPE
The server is refusing to service the request because the entity of the
request is in a format not supported by the requested resource for the
requested method.
|
static Status |
Status.CONNECTOR_ERROR_COMMUNICATION
The client connector faced an error during the communication with the
remote server (interruption, timeout, etc.).
|
static Status |
Status.CONNECTOR_ERROR_CONNECTION
The client connector could not connect to the remote server.
|
static Status |
Status.CONNECTOR_ERROR_INTERNAL
The client connector faced an internal error during the process of a
request to its server or the process of a response to its client.
|
static Status |
Status.INFO_CONTINUE
This interim response (the client has to wait for the final response) is
used to inform the client that the initial part of the request has been
received and has not yet been rejected or completed by the server.
|
static Status |
Status.INFO_DISCONNECTED_OPERATION
Warning status code, typically returned by a cache, indicating that it is
intentionally disconnected from the rest of the network for a period of
time.
|
static Status |
Status.INFO_HEURISTIC_EXPIRATION
Warning status code, typically returned by a cache, indicating that it
heuristically chose a freshness lifetime greater than 24 hours and the
response's age is greater than 24 hours.
|
static Status |
Status.INFO_MISC_WARNING
Warning status code, optionally including arbitrary information to be
presented to a human user, typically returned by a cache.
|
static Status |
Status.INFO_PROCESSING
This interim response is used to inform the client that the server has
accepted the complete request, but has not yet completed it since the
server has a reasonable expectation that the request will take
significant time to complete.
|
static Status |
Status.INFO_REVALIDATION_FAILED
Warning status code, typically returned by a cache, indicating that the
response is stale because an attempt to revalidate the response failed,
due to an inability to reach the server.
|
static Status |
Status.INFO_STALE_RESPONSE
Warning status code, typically returned by a cache, indicating that the
response is stale.
|
static Status |
Status.INFO_SWITCHING_PROTOCOL
The server understands and is willing to comply with the client's
request, via the Upgrade message header field, for a change in the
application protocol being used on this connection.
|
static Status |
Status.REDIRECTION_FOUND
The requested resource resides temporarily under a different URI which
should not be used for future requests by the client (use status codes
303 or 307 instead since this status has been manifestly misused).
|
static Status |
Status.REDIRECTION_MULTIPLE_CHOICES
The server lets the user agent choosing one of the multiple
representations of the requested resource, each representation having its
own specific location provided in the response entity.
|
static Status |
Status.REDIRECTION_NOT_MODIFIED
Status code sent by the server in response to a conditional GET request
in case the document has not been modified.
|
static Status |
Status.REDIRECTION_PERMANENT
The requested resource has been assigned a new permanent URI and any
future references to this resource SHOULD use one of the returned URIs.
|
static Status |
Status.REDIRECTION_SEE_OTHER
The response to the request can be found under a different URI and SHOULD
be retrieved using a GET method on that resource.
|
static Status |
Status.REDIRECTION_TEMPORARY
The requested resource resides temporarily under a different URI which
should not be used for future requests by the client.
|
static Status |
Status.REDIRECTION_USE_PROXY
The requested resource MUST be accessed through the proxy given by the
Location field.
|
static Status |
Status.SERVER_ERROR_BAD_GATEWAY
The server, while acting as a gateway or proxy, received an invalid
response from the upstream server it accessed in attempting to fulfill
the request.
|
static Status |
Status.SERVER_ERROR_GATEWAY_TIMEOUT
The server, while acting as a gateway or proxy, could not connect to the
upstream server.
|
static Status |
Status.SERVER_ERROR_INSUFFICIENT_STORAGE
This status code means the method could not be performed on the resource
because the server is unable to store the representation needed to
successfully complete the request.
|
static Status |
Status.SERVER_ERROR_INTERNAL
The server encountered an unexpected condition which prevented it from
fulfilling the request.
|
static Status |
Status.SERVER_ERROR_NOT_IMPLEMENTED
The server does not support the functionality required to fulfill the
request.
|
static Status |
Status.SERVER_ERROR_SERVICE_UNAVAILABLE
The server is currently unable to handle the request due to a temporary
overloading or maintenance of the server.
|
static Status |
Status.SERVER_ERROR_VERSION_NOT_SUPPORTED
The server does not support, or refuses to support, the HTTP protocol
version that was used in the request message.
|
static Status |
Status.SUCCESS_ACCEPTED
The request has been accepted for processing, but the processing has not
been completed.
|
static Status |
Status.SUCCESS_CREATED
The request has been fulfilled and resulted in a new resource being
created.
|
static Status |
Status.SUCCESS_MISC_PERSISTENT_WARNING
Warning status code, optionally including arbitrary information to be
presented to a human user, typically returned by a cache.
|
static Status |
Status.SUCCESS_MULTI_STATUS
This response is used to inform the client that the HTTP response entity
contains a set of status codes generated during the method invocation.
|
static Status |
Status.SUCCESS_NO_CONTENT
The server has fulfilled the request but does not need to return an
entity-body (for example after a DELETE), and might want to return
updated meta-information.
|
static Status |
Status.SUCCESS_NON_AUTHORITATIVE
The request has succeeded but the returned meta-information in the
entity-header does not come from the origin server, but is gathered from
a local or a third-party copy.
|
static Status |
Status.SUCCESS_OK
The request has succeeded.
|
static Status |
Status.SUCCESS_PARTIAL_CONTENT
The server has fulfilled the partial GET request for the resource
assuming the request has included a Range header field indicating the
desired range.
|
static Status |
Status.SUCCESS_RESET_CONTENT
The server has fulfilled the request and the user agent SHOULD reset the
document view which caused the request to be sent.
|
static Status |
Status.SUCCESS_TRANSFORMATION_APPLIED
Warning status code, typically returned by a cache or a proxy, indicating
that the response has been transformed.
|
Modifier and Type | Method and Description |
---|---|
Status |
Conditions.getRangeStatus(RepresentationInfo representationInfo)
Returns the range conditional status of an entity.
|
Status |
Conditions.getRangeStatus(Tag tag,
Date modificationDate)
Returns the range conditional status of an entity.
|
Status |
Warning.getStatus()
Returns the special status.
|
Status |
Conditions.getStatus(Method method,
boolean entityExists,
Tag tag,
Date modificationDate)
Returns the conditional status of a variant using a given method.
|
Status |
Conditions.getStatus(Method method,
RepresentationInfo representationInfo)
Returns the conditional status of a variant using a given method.
|
static Status |
Status.valueOf(int code)
Returns the status associated to a code.
|
Modifier and Type | Method and Description |
---|---|
void |
Warning.setStatus(Status status)
Sets the special status.
|
Constructor and Description |
---|
Status(Status status,
String description)
Constructor.
|
Status(Status status,
Throwable throwable)
Constructor.
|
Status(Status status,
Throwable throwable,
String description)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Status |
ClientCall.sendRequest(Request request)
Sends the request to the client.
|
Modifier and Type | Method and Description |
---|---|
void |
ClientAdapter.updateResponse(Response response,
Status status,
ClientCall httpCall)
Updates the response with information from the lower-level HTTP client
call.
|
Modifier and Type | Method and Description |
---|---|
protected Status |
StatusFilter.getStatus(Throwable throwable,
Request request,
Response response)
Returns a status for a given exception or error.
|
Modifier and Type | Method and Description |
---|---|
protected Representation |
StatusFilter.getDefaultRepresentation(Status status,
Request request,
Response response)
Returns a representation for the given status.
In order to customize the default representation, this method can be overridden. |
protected Representation |
StatusFilter.getRepresentation(Status status,
Request request,
Response response)
Returns a representation for the given status.
In order to customize the default representation, this method can be overridden. |
protected String |
StatusFilter.getStatusInfo(Status status)
Returns the status information to display in the default representation.
|
Modifier and Type | Method and Description |
---|---|
protected Status |
ClientInboundWay.createStatus(int code)
Returns the status corresponding to a given status code.
|
Modifier and Type | Method and Description |
---|---|
protected abstract Response |
ClientInboundWay.createResponse(Status status)
Creates a response object for the given status.
|
protected Response |
HttpClientInboundWay.createResponse(Status status) |
abstract void |
Way.onError(Status status)
Called on error.
|
void |
HttpServerInboundWay.onError(Status status) |
void |
HttpServerOutboundWay.onError(Status status) |
void |
HttpClientOutboundWay.onError(Status status) |
void |
HttpClientInboundWay.onError(Status status) |
void |
InboundWay.onError(Status status) |
void |
OutboundWay.onError(Status status) |
void |
Connection.onError(String message,
Throwable throwable,
Status status)
Called on error.
|
void |
BaseHelper.onInboundError(Status status,
Response message)
Called on error.
|
void |
BaseHelper.onOutboundError(Status status,
Response message)
Called on error.
|
Modifier and Type | Method and Description |
---|---|
Status |
Service.deleteResource(String uri)
Deletes a resource.
|
Status |
Service.updateResource(String uri,
Representation updatedRepresentation)
Updates a resource representation.
|
Modifier and Type | Method and Description |
---|---|
Status |
HttpMethodCall.sendRequest(Request request)
Sends the request to the client.
|
Modifier and Type | Method and Description |
---|---|
protected Status |
TriggerResource.getResponseStatus(List<String> mailsSuccessful,
Map<String,String> mailsUnsuccessful)
Returns the response's status according to the list of successfull and
unsuccessfull mails.
|
Modifier and Type | Method and Description |
---|---|
Status |
HttpUrlConnectionCall.sendRequest(Request request)
Sends the request to the client.
|
Modifier and Type | Field and Description |
---|---|
static Status |
SipStatus.CLIENT_ERROR_ADDRESS_INCOMPLETE
The server received a request with a Request-URI that was incomplete.
|
static Status |
SipStatus.CLIENT_ERROR_AMBIGUOUS
The Request-URI was ambiguous.
|
static Status |
SipStatus.CLIENT_ERROR_BAD_EXTENSION
The server did not understand the protocol extension specified in a
Proxy-Require or Require header field.
|
static Status |
SipStatus.CLIENT_ERROR_BAD_REQUEST
The request could not be understood due to malformed syntax.
|
static Status |
SipStatus.CLIENT_ERROR_BUSY_HERE
The callee's end system was contacted successfully, but the callee is
currently not willing or able to take additional calls at this end
system.
|
static Status |
SipStatus.CLIENT_ERROR_CALL_DOESNT_EXIST
Indicates that the UAS received a request that does not match any
existing dialog or transaction.
|
static Status |
SipStatus.CLIENT_ERROR_EXTENSION_REQUIRED
The UAS needs a particular extension to process the request, but this
extension is not listed in a Supported header field in the request.
|
static Status |
SipStatus.CLIENT_ERROR_FORBIDDEN
The server understood the request, but is refusing to fulfill it.
|
static Status |
SipStatus.CLIENT_ERROR_GONE
The requested resource is no longer available at the server and no
forwarding address is known.
|
static Status |
SipStatus.CLIENT_ERROR_INTERVAL_TOO_BRIEF
The server is rejecting the request because the expiration time of the
resource refreshed by the request is too short.
|
static Status |
SipStatus.CLIENT_ERROR_LOOP_DETECTED
The server has detected a loop.
|
static Status |
SipStatus.CLIENT_ERROR_METHOD_NOT_ALLOWED
The method specified in the Request-Line is understood, but not allowed
for the address identified by the Request-URI.
|
static Status |
SipStatus.CLIENT_ERROR_NOT_ACCEPTABLE
The resource identified by the request is only capable of generating
response entities that have content characteristics not acceptable
according to the Accept header field sent in the request.
|
static Status |
SipStatus.CLIENT_ERROR_NOT_ACCEPTABLE_HERE
The response has the same meaning as 606 (Not Acceptable), but only
applies to the specific resource addressed by the Request-URI and the
request may succeed elsewhere.
|
static Status |
SipStatus.CLIENT_ERROR_NOT_FOUND
The server has definitive information that the user does not exist at the
domain specified in the Request-URI.
|
static Status |
SipStatus.CLIENT_ERROR_PAYMENT_REQUIRED
Reserved for future use.
|
static Status |
SipStatus.CLIENT_ERROR_PROXY_AUTHENTIFICATION_REQUIRED
This code is similar to 401 (Unauthorized), but indicates that the client
MUST first authenticate itself with the proxy.
|
static Status |
SipStatus.CLIENT_ERROR_REQUEST_ENTITY_TOO_LARGE
The server is refusing to process a request because the request
entity-body is larger than the server is willing or able to process.
|
static Status |
SipStatus.CLIENT_ERROR_REQUEST_PENDING
The request was received by a UAS that had a pending request within the
same dialog.
|
static Status |
SipStatus.CLIENT_ERROR_REQUEST_TERMINATED
The request was terminated by a BYE or CANCEL request.
|
static Status |
SipStatus.CLIENT_ERROR_REQUEST_TIMEOUT
The server could not produce a response within a suitable amount of time,
for example, if it could not determine the location of the user in time.
|
static Status |
SipStatus.CLIENT_ERROR_REQUEST_UNDECIPHERABLE
The request was received by a UAS that contained an encrypted MIME body
for which the recipient does not possess or will not provide an
appropriate decryption key.
|
static Status |
SipStatus.CLIENT_ERROR_REQUEST_URI_TOO_LONG
The server is refusing to service the request because the Request-URI is
longer than the server is willing to interpret.
|
static Status |
SipStatus.CLIENT_ERROR_TEMPORARILY_UNAVAILABLE
The callee's end system was contacted successfully but the callee is
currently unavailable (for example, is not logged in, logged in but in a
state that precludes communication with the callee, or has activated the
"do not disturb" feature).
|
static Status |
SipStatus.CLIENT_ERROR_TOO_MANY_HOPS
The server received a request that contains a Max-Forwards header field
with the value zero.
|
static Status |
SipStatus.CLIENT_ERROR_UNAUTHORIZED
The request requires user authentication.
|
static Status |
SipStatus.CLIENT_ERROR_UNSUPPORTED_MEDIA_TYPE
The server is refusing to service the request because the message body of
the request is in a format not supported by the server for the requested
method.
|
static Status |
SipStatus.CLIENT_ERROR_UNSUPPORTED_URI_SCHEME
The server cannot process the request because the scheme of the URI in
the Request-URI is unknown to the server.
|
static Status |
SipStatus.GLOBAL_ERROR_BUSY_EVERYWHERE
The callee's end system was contacted successfully but the callee is busy
and does not wish to take the call at this time.
|
static Status |
SipStatus.GLOBAL_ERROR_DECLINE
The callee's machine was successfully contacted but the user explicitly
does not wish to or cannot participate.
|
static Status |
SipStatus.GLOBAL_ERROR_DOESNT_EXIST_ANYWHERE
The server has authoritative information that the user indicated in the
Request-URI does not exist anywhere.
|
static Status |
SipStatus.GLOBAL_ERROR_NOT_ACCEPTABLE
The user's agent was contacted successfully but some aspects of the
session description such as the requested media, bandwidth, or addressing
style were not acceptable.
|
static Status |
SipStatus.INFO_CALL_IS_BEING_FORWARDED
A server MAY use this status code to indicate that the call is being
forwarded to a different set of destinations.
|
static Status |
SipStatus.INFO_QUEUED
The called party is temporarily unavailable, but the server has decided
to queue the call rather than reject it.
|
static Status |
SipStatus.INFO_RINGING
The UA receiving the INVITE is trying to alert the user.
|
static Status |
SipStatus.INFO_SESSION_PROGRESS
Used to convey information about the progress of the call that is not
otherwise classified.
|
static Status |
SipStatus.INFO_TRYING
This response indicates that the request has been received by the
next-hop server and that some unspecified action is being taken on behalf
of this call.
|
static Status |
SipStatus.REDIRECTION_ALTERNATIVE_SERVICE
The call was not successful, but alternative services are possible.
|
static Status |
SipStatus.REDIRECTION_MOVED_PERMANENTLY
The user can no longer be found at the address in the Request-URI, and
the requesting client SHOULD retry at the new address given by the
Contact header field.
|
static Status |
SipStatus.REDIRECTION_MOVED_TEMPORARILY
The requesting client SHOULD retry the request at the new address(es)
given by the Contact header field.
|
static Status |
SipStatus.REDIRECTION_MULTIPLE_CHOICES
The address in the request resolved to several choices, each with its own
specific location, and the user (or UA) can select a preferred
communication end point and redirect its request to that location.
|
static Status |
SipStatus.REDIRECTION_USE_PROXY
The requested resource MUST be accessed through the proxy given by the
Contact field.
|
static Status |
SipStatus.SERVER_ERROR_BAD_GATEWAY
The server, while acting as a gateway or proxy, received an invalid
response from the downstream server it accessed in attempting to fulfill
the request.
|
static Status |
SipStatus.SERVER_ERROR_INTERNAL
The server encountered an unexpected condition that prevented it from
fulfilling the request.
|
static Status |
SipStatus.SERVER_ERROR_MESSAGE_TOO_LARGE
The server was unable to process the request since the message length
exceeded its capabilities.
|
static Status |
SipStatus.SERVER_ERROR_NOT_IMPLEMENTED
The server does not support the functionality required to fulfill the
request.
|
static Status |
SipStatus.SERVER_ERROR_SERVER_TIMEOUT
The server did not receive a timely response from an external server it
accessed in attempting to process the request.
|
static Status |
SipStatus.SERVER_ERROR_SERVICE_UNAVAILABLE
The server is temporarily unable to process the request due to a
temporary overloading or maintenance of the server.
|
static Status |
SipStatus.SERVER_ERROR_VERSION_NOT_SUPPORTED
The server does not support, or refuses to support, the SIP protocol
version that was used in the request.
|
static Status |
SipStatus.SUCCESS_OK
The request has succeeded.
|
Modifier and Type | Method and Description |
---|---|
static Status |
SipStatus.valueOf(int code)
Returns the status associated to a code.
|
Modifier and Type | Method and Description |
---|---|
protected Status |
SipClientInboundWay.createStatus(int code) |
Modifier and Type | Method and Description |
---|---|
protected Response |
SipClientInboundWay.createResponse(Status status) |
Modifier and Type | Method and Description |
---|---|
List<Status> |
ResponseInfo.getStatuses()
Returns the list of statuses associated with this response
representation.
|
Modifier and Type | Method and Description |
---|---|
void |
ResponseInfo.setStatuses(List<Status> statuses)
Sets the list of statuses associated with this response representation.
|
Modifier and Type | Method and Description |
---|---|
Status |
ResourceException.getStatus()
Returns the status associated to this exception.
|
Status |
Resource.getStatus()
Returns the status.
|
Modifier and Type | Method and Description |
---|---|
void |
ClientResource.doError(Status errorStatus)
By default, it throws a new resource exception.
|
protected void |
ServerResource.doError(Status errorStatus)
By default, it sets the status on the response.
|
protected void |
Resource.doError(Status errorStatus)
Invoked when an error response status is received.
|
protected void |
Resource.doError(Status errorStatus,
String errorMessage)
Invoked when an error response status is received.
|
void |
ServerResource.setStatus(Status status)
Sets the status.
|
void |
ServerResource.setStatus(Status status,
String message)
Sets the status.
|
void |
ServerResource.setStatus(Status status,
Throwable throwable)
Sets the status.
|
void |
ServerResource.setStatus(Status status,
Throwable throwable,
String message)
Sets the status.
|
Constructor and Description |
---|
ResourceException(Status status)
Constructor.
|
ResourceException(Status status,
String description)
Constructor.
|
ResourceException(Status status,
String description,
Throwable cause)
Constructor.
|
ResourceException(Status status,
Throwable cause)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Status |
StatusService.getStatus(Throwable throwable,
Request request,
Response response)
Returns a status for a given exception or error.
|
Status |
StatusService.getStatus(Throwable throwable,
Resource resource)
Returns a status for a given exception or error.
|
Modifier and Type | Method and Description |
---|---|
Representation |
StatusService.getRepresentation(Status status,
Request request,
Response response)
Returns a representation for the given status.
In order to customize the default representation, this method can be overridden. |
Modifier and Type | Method and Description |
---|---|
Status |
WrapperResponse.getStatus()
Returns the status.
|
Modifier and Type | Method and Description |
---|---|
void |
WrapperResponse.setStatus(Status status)
Sets the status.
|
void |
WrapperResponse.setStatus(Status status,
String message)
Sets the status.
|
void |
WrapperResponse.setStatus(Status status,
Throwable throwable) |
void |
WrapperResponse.setStatus(Status status,
Throwable throwable,
String message) |
Copyright © 2005–2013. All rights reserved.