Uses of Class
org.restlet.data.Status
-
Packages that use Status Package Description org.restlet Core classes of the API.org.restlet.data Information exchanged by components.org.restlet.engine.adapter Adapters between low-level HTTP calls and high-level Restlet Request and Response objects.org.restlet.engine.application Supports Restlet applications.org.restlet.engine.connector Integration with Java URLConnection class.org.restlet.engine.local Supports local connectors and resources.org.restlet.engine.resource Supports resources.org.restlet.ext.atom Support for the Atom syndication and the AtomPub (Atom Publication Protocol) standards in their 1.0 version.org.restlet.ext.httpclient.internal org.restlet.ext.javamail Integration with JavaMail @minor-version@ (POP3 and SMTP clients).org.restlet.ext.jetty.internal org.restlet.ext.json Support for JSON representations.org.restlet.ext.nio Integration with Java NIO package.org.restlet.ext.nio.internal.connection org.restlet.ext.nio.internal.way org.restlet.ext.wadl Support the WADL specification.org.restlet.resource Client and server resource classes.org.restlet.service Services used by applications and components.org.restlet.util Various utility classes. -
-
Uses of Status in org.restlet
Fields in org.restlet declared as Status Modifier and Type Field Description private StatusResponse. statusThe status.Methods in org.restlet that return Status Modifier and Type Method Description StatusResponse. getStatus()Returns the status.Methods in org.restlet with parameters of type Status Modifier and Type Method Description voidResponse. setStatus(Status status)Sets the status.voidResponse. setStatus(Status status, java.lang.String description)Sets the status.voidResponse. setStatus(Status status, java.lang.Throwable throwable)Sets the status.voidResponse. setStatus(Status status, java.lang.Throwable throwable, java.lang.String message)Sets the status. -
Uses of Status in org.restlet.data
Fields in org.restlet.data declared as Status Modifier and Type Field Description static StatusStatus. CLIENT_ERROR_BAD_REQUESTThe request could not be understood by the server due to malformed syntax.static StatusStatus. CLIENT_ERROR_CONFLICTThe request could not be completed due to a conflict with the current state of the resource (as experienced in a version control system).static StatusStatus. CLIENT_ERROR_EXPECTATION_FAILEDThe 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 StatusStatus. CLIENT_ERROR_FAILED_DEPENDENCYThis 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 StatusStatus. CLIENT_ERROR_FORBIDDENThe server understood the request, but is refusing to fulfill it as it could be explained in the entity.static StatusStatus. CLIENT_ERROR_GONEThe requested resource is no longer available at the server and no forwarding address is known.static StatusStatus. CLIENT_ERROR_LENGTH_REQUIREDThe server refuses to accept the request without a defined Content-Length.static StatusStatus. CLIENT_ERROR_LOCKEDThe source or destination resource of a method is locked (or temporarily involved in another process).static StatusStatus. CLIENT_ERROR_METHOD_NOT_ALLOWEDThe method specified in the Request-Line is not allowed for the resource identified by the Request-URI.static StatusStatus. CLIENT_ERROR_NOT_ACCEPTABLEThe 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 StatusStatus. CLIENT_ERROR_NOT_FOUNDThe 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 StatusStatus. CLIENT_ERROR_PAYMENT_REQUIREDThis code is reserved for future use.static StatusStatus. CLIENT_ERROR_PRECONDITION_FAILEDSent by the server when the user agent asks the server to carry out a request under certain conditions that are not met.static StatusStatus. CLIENT_ERROR_PROXY_AUTHENTIFICATION_REQUIREDThis code is similar to 401 (Unauthorized), but indicates that the client must first authenticate itself with the proxy.static StatusStatus. CLIENT_ERROR_REQUEST_ENTITY_TOO_LARGEThe server is refusing to process a request because the request entity is larger than the server is willing or able to process.static StatusStatus. CLIENT_ERROR_REQUEST_TIMEOUTSent 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 StatusStatus. CLIENT_ERROR_REQUEST_URI_TOO_LONGThe server is refusing to service the request because the Request-URI is longer than the server is willing to interpret.static StatusStatus. CLIENT_ERROR_REQUESTED_RANGE_NOT_SATISFIABLEThe request includes a Range request-header field and the selected resource is too small for any of the byte-ranges to apply.static StatusStatus. CLIENT_ERROR_TOO_MANY_REQUESTSThe server refuses to accept the request because the user has sent too many requests in a given amount of time.static StatusStatus. CLIENT_ERROR_UNAUTHORIZEDThe request requires user authentication.static StatusStatus. CLIENT_ERROR_UNPROCESSABLE_ENTITYThis status code means the server understands the content type of the request entity (syntactically correct) but was unable to process the contained instructions.static StatusStatus. CLIENT_ERROR_UNSUPPORTED_MEDIA_TYPEThe 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 StatusStatus. CONNECTOR_ERROR_COMMUNICATIONThe client connector faced an error during the communication with the remote server (interruption, timeout, etc.).static StatusStatus. CONNECTOR_ERROR_CONNECTIONThe client connector could not connect to the remote server.static StatusStatus. CONNECTOR_ERROR_INTERNALThe 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 StatusStatus. INFO_CONTINUEThis 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 StatusStatus. INFO_DISCONNECTED_OPERATIONWarning 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 StatusStatus. INFO_HEURISTIC_EXPIRATIONWarning 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 StatusStatus. INFO_MISC_WARNINGWarning status code, optionally including arbitrary information to be presented to a human user, typically returned by a cache.static StatusStatus. INFO_PROCESSINGThis 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 StatusStatus. INFO_REVALIDATION_FAILEDWarning 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 StatusStatus. INFO_STALE_RESPONSEWarning status code, typically returned by a cache, indicating that the response is stale.static StatusStatus. INFO_SWITCHING_PROTOCOLThe 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 StatusStatus. REDIRECTION_FOUNDThe 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 StatusStatus. REDIRECTION_MULTIPLE_CHOICESThe 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 StatusStatus. REDIRECTION_NOT_MODIFIEDStatus code sent by the server in response to a conditional GET request in case the document has not been modified.static StatusStatus. REDIRECTION_PERMANENTThe requested resource has been assigned a new permanent URI and any future references to this resource SHOULD use one of the returned URIs.static StatusStatus. REDIRECTION_SEE_OTHERThe response to the request can be found under a different URI and SHOULD be retrieved using a GET method on that resource.static StatusStatus. REDIRECTION_TEMPORARYThe requested resource resides temporarily under a different URI which should not be used for future requests by the client.static StatusStatus. REDIRECTION_USE_PROXYThe requested resource MUST be accessed through the proxy given by the Location field.static StatusStatus. SERVER_ERROR_BAD_GATEWAYThe 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 StatusStatus. SERVER_ERROR_GATEWAY_TIMEOUTThe server, while acting as a gateway or proxy, could not connect to the upstream server.static StatusStatus. SERVER_ERROR_INSUFFICIENT_STORAGEThis 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 StatusStatus. SERVER_ERROR_INTERNALThe server encountered an unexpected condition which prevented it from fulfilling the request.static StatusStatus. SERVER_ERROR_NOT_IMPLEMENTEDThe server does not support the functionality required to fulfill the request.static StatusStatus. SERVER_ERROR_SERVICE_UNAVAILABLEThe server is currently unable to handle the request due to a temporary overloading or maintenance of the server.static StatusStatus. SERVER_ERROR_VERSION_NOT_SUPPORTEDThe server does not support, or refuses to support, the HTTP protocol version that was used in the request message.private StatusWarning. statusThe special status.static StatusStatus. SUCCESS_ACCEPTEDThe request has been accepted for processing, but the processing has not been completed.static StatusStatus. SUCCESS_CREATEDThe request has been fulfilled and resulted in a new resource being created.static StatusStatus. SUCCESS_MISC_PERSISTENT_WARNINGWarning status code, optionally including arbitrary information to be presented to a human user, typically returned by a cache.static StatusStatus. SUCCESS_MULTI_STATUSThis response is used to inform the client that the HTTP response entity contains a set of status codes generated during the method invocation.static StatusStatus. SUCCESS_NO_CONTENTThe 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 StatusStatus. SUCCESS_NON_AUTHORITATIVEThe 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 StatusStatus. SUCCESS_OKThe request has succeeded.static StatusStatus. SUCCESS_PARTIAL_CONTENTThe server has fulfilled the partial GET request for the resource assuming the request has included a Range header field indicating the desired range.static StatusStatus. SUCCESS_RESET_CONTENTThe server has fulfilled the request and the user agent SHOULD reset the document view which caused the request to be sent.static StatusStatus. SUCCESS_TRANSFORMATION_APPLIEDWarning status code, typically returned by a cache or a proxy, indicating that the response has been transformed.Methods in org.restlet.data that return Status Modifier and Type Method Description StatusConditions. getRangeStatus(Tag tag, java.util.Date modificationDate)Returns the range conditional status of an entity.StatusConditions. getRangeStatus(RepresentationInfo representationInfo)Returns the range conditional status of an entity.StatusConditions. getStatus(Method method, boolean entityExists, Tag tag, java.util.Date modificationDate)Returns the conditional status of a variant using a given method.StatusConditions. getStatus(Method method, RepresentationInfo representationInfo)Returns the conditional status of a variant using a given method.StatusWarning. getStatus()Returns the special status.static StatusStatus. valueOf(int code)Returns the status associated to a code.Methods in org.restlet.data with parameters of type Status Modifier and Type Method Description voidWarning. setStatus(Status status)Sets the special status.Constructors in org.restlet.data with parameters of type Status Constructor Description Status(Status status, java.lang.String description)Constructor.Status(Status status, java.lang.String reasonPhrase, java.lang.String description)Constructor.Status(Status status, java.lang.Throwable throwable)Constructor.Status(Status status, java.lang.Throwable throwable, java.lang.String reasonPhrase)Constructor.Status(Status status, java.lang.Throwable throwable, java.lang.String reasonPhrase, java.lang.String description)Constructor. -
Uses of Status in org.restlet.engine.adapter
Methods in org.restlet.engine.adapter that return Status Modifier and Type Method Description StatusClientCall. sendRequest(Request request)Sends the request to the client.Methods in org.restlet.engine.adapter with parameters of type Status Modifier and Type Method Description voidClientAdapter. updateResponse(Response response, Status status, ClientCall httpCall)Updates the response with information from the lower-level HTTP client call. -
Uses of Status in org.restlet.engine.application
Constructors in org.restlet.engine.application with parameters of type Status Constructor Description StatusInfo(Status status)Constructor.StatusInfo(Status status, java.lang.String contactEmail, java.lang.String homeRef)Constructor. -
Uses of Status in org.restlet.engine.connector
Methods in org.restlet.engine.connector that return Status Modifier and Type Method Description StatusHttpUrlConnectionCall. sendRequest(Request request)Sends the request to the client. -
Uses of Status in org.restlet.engine.local
Methods in org.restlet.engine.local that return Status Modifier and Type Method Description private StatusFileClientHelper. createFile(Request request, java.io.File file)private StatusFileClientHelper. createFileWithPartialContent(Request request, java.io.File file, Range range)private StatusFileClientHelper. doHandleFilePut(Request request, java.lang.String path, java.io.File file)private StatusFileClientHelper. replaceFile(Request request, java.io.File file)private StatusFileClientHelper. replaceFileByTemporaryFile(Request request, java.io.File file, java.io.File tmp)private StatusFileClientHelper. updateFileWithPartialContent(Request request, java.io.File file, Range range) -
Uses of Status in org.restlet.engine.resource
Fields in org.restlet.engine.resource declared as Status Modifier and Type Field Description private StatusThrowableAnnotationInfo. statusThe status parsed from the annotation value.Methods in org.restlet.engine.resource that return Status Modifier and Type Method Description StatusThrowableAnnotationInfo. getStatus()Returns the status parsed from the annotation value. -
Uses of Status in org.restlet.ext.atom
Methods in org.restlet.ext.atom that return Status Modifier and Type Method Description StatusService. deleteResource(java.lang.String uri)Deletes a resource.StatusService. updateResource(java.lang.String uri, Representation updatedRepresentation)Updates a resource representation. -
Uses of Status in org.restlet.ext.httpclient.internal
Methods in org.restlet.ext.httpclient.internal that return Status Modifier and Type Method Description StatusHttpMethodCall. sendRequest(Request request)Sends the request to the client. -
Uses of Status in org.restlet.ext.javamail
Methods in org.restlet.ext.javamail that return Status Modifier and Type Method Description protected StatusTriggerResource. getResponseStatus(java.util.List<java.lang.String> mailsSuccessful, java.util.Map<java.lang.String,java.lang.String> mailsUnsuccessful)Deprecated.Returns the response's status according to the list of successfull and unsuccessfull mails. -
Uses of Status in org.restlet.ext.jetty.internal
Methods in org.restlet.ext.jetty.internal that return Status Modifier and Type Method Description StatusJettyClientCall. sendRequest(Request request)Sends the request to the client. -
Uses of Status in org.restlet.ext.json
Fields in org.restlet.ext.json declared as Status Modifier and Type Field Description private StatusJsonpRepresentation. statusThe actual status code.Methods in org.restlet.ext.json that return Status Modifier and Type Method Description StatusJsonpRepresentation. getStatus()Returns the actual status code.Constructors in org.restlet.ext.json with parameters of type Status Constructor Description JsonpRepresentation(java.lang.String callback, Status status, Representation wrappedRepresentation)Constructor. -
Uses of Status in org.restlet.ext.nio
Methods in org.restlet.ext.nio with parameters of type Status Modifier and Type Method Description voidBaseHelper. onInboundError(Status status, Response message)Deprecated.Called on error.voidBaseHelper. onOutboundError(Status status, Response message)Deprecated.Called on error. -
Uses of Status in org.restlet.ext.nio.internal.connection
Methods in org.restlet.ext.nio.internal.connection with parameters of type Status Modifier and Type Method Description voidConnection. onError(java.lang.String message, java.lang.Throwable throwable, Status status)Deprecated.Called on error. -
Uses of Status in org.restlet.ext.nio.internal.way
Methods in org.restlet.ext.nio.internal.way that return Status Modifier and Type Method Description protected StatusClientInboundWay. createStatus(int code)Deprecated.Returns the status corresponding to a given status code.Methods in org.restlet.ext.nio.internal.way with parameters of type Status Modifier and Type Method Description protected abstract ResponseClientInboundWay. createResponse(Status status)Deprecated.Creates a response object for the given status.protected ResponseHttpClientInboundWay. createResponse(Status status)Deprecated.voidHttpClientInboundWay. onError(Status status)Deprecated.voidHttpClientOutboundWay. onError(Status status)Deprecated.voidHttpServerInboundWay. onError(Status status)Deprecated.voidHttpServerOutboundWay. onError(Status status)Deprecated.voidInboundWay. onError(Status status)Deprecated.voidOutboundWay. onError(Status status)Deprecated.abstract voidWay. onError(Status status)Deprecated.Called on error. -
Uses of Status in org.restlet.ext.wadl
Fields in org.restlet.ext.wadl with type parameters of type Status Modifier and Type Field Description private java.util.List<Status>ResponseInfo. statusesDeprecated.List of statuses associated with this response representation.Methods in org.restlet.ext.wadl that return types with arguments of type Status Modifier and Type Method Description java.util.List<Status>ResponseInfo. getStatuses()Deprecated.Returns the list of statuses associated with this response representation.Method parameters in org.restlet.ext.wadl with type arguments of type Status Modifier and Type Method Description voidResponseInfo. setStatuses(java.util.List<Status> statuses)Deprecated.Sets the list of statuses associated with this response representation. -
Uses of Status in org.restlet.resource
Fields in org.restlet.resource declared as Status Modifier and Type Field Description private StatusResourceException. statusThe status associated to this exception.Methods in org.restlet.resource that return Status Modifier and Type Method Description StatusResource. getStatus()Returns the status.StatusResourceException. getStatus()Returns the status associated to this exception.Methods in org.restlet.resource with parameters of type Status Modifier and Type Method Description voidClientResource. doError(Status errorStatus)By default, it throws a new resource exception.voidClientResource. doError(Status errorStatus, Request request, Response response)By default, it throws a new resource exception.protected voidResource. doError(Status errorStatus)Invoked when an error response status is received.protected voidResource. doError(Status errorStatus, java.lang.String errorMessage)Invoked when an error response status is received.protected voidServerResource. doError(Status errorStatus)By default, it sets the status on the response.voidServerResource. setStatus(Status status)Sets the status.voidServerResource. setStatus(Status status, java.lang.String message)Sets the status.voidServerResource. setStatus(Status status, java.lang.Throwable throwable)Sets the status.voidServerResource. setStatus(Status status, java.lang.Throwable throwable, java.lang.String message)Sets the status.Constructors in org.restlet.resource with parameters of type Status Constructor Description ResourceException(Status status)Constructor.ResourceException(Status status, java.lang.String description)Constructor.ResourceException(Status status, java.lang.String description, java.lang.Throwable cause)Constructor.ResourceException(Status status, java.lang.Throwable cause)Constructor.ResourceException(Status status, java.lang.Throwable cause, Request request, Response response)Constructor.ResourceException(Status status, Request request, Response response)Constructor.ResourceException(Status status, Resource resource)Deprecated.use constructor with status, request and response instead. -
Uses of Status in org.restlet.service
Methods in org.restlet.service that return Status Modifier and Type Method Description StatusStatusService. getStatus(java.lang.Throwable throwable, Request request, Response response)Deprecated.UseStatusService.toStatus(Throwable, Request, Response)instead.StatusStatusService. getStatus(java.lang.Throwable throwable, Resource resource)Deprecated.UseStatusService.toStatus(Throwable, Resource)instead.StatusStatusService. toStatus(java.lang.Throwable throwable, Request request, Response response)Returns a status for a given exception or error.StatusStatusService. toStatus(java.lang.Throwable throwable, Resource resource)Returns a status for a given exception or error.Methods in org.restlet.service with parameters of type Status Modifier and Type Method Description RepresentationStatusService. getRepresentation(Status status, Request request, Response response)Deprecated.RepresentationStatusService. toRepresentation(Status status, Request request, Response response)Returns a representation for the given status.RepresentationStatusService. toRepresentation(Status status, Resource resource)Returns a representation for the given status.
In order to customize the default representation, this method can be overridden. -
Uses of Status in org.restlet.util
Methods in org.restlet.util that return Status Modifier and Type Method Description StatusWrapperResponse. getStatus()Returns the status.Methods in org.restlet.util with parameters of type Status Modifier and Type Method Description voidWrapperResponse. setStatus(Status status)Sets the status.voidWrapperResponse. setStatus(Status status, java.lang.String message)Sets the status.voidWrapperResponse. setStatus(Status status, java.lang.Throwable throwable)voidWrapperResponse. setStatus(Status status, java.lang.Throwable throwable, java.lang.String message)
-