B C D E F G H I J L N O P Q R S T W
All Classes All Packages
All Classes All Packages
All Classes All Packages
B
- build() - Method in class org.gcube.common.gxrest.response.outbound.GXOutboundSuccessResponse
-
Builds the response to return.
C
- clear() - Method in class org.gcube.common.gxrest.request.GXHTTPStreamRequest
-
Clear up the request.
- clear() - Method in class org.gcube.common.gxrest.request.GXHTTPStringRequest
-
Clear up the request.
- CodeEntity - Class in org.gcube.common.gxrest.response.entity
-
An entity to wrap
SerializableErrorEntitys into aWebCodeException. - CodeEntity(SerializableErrorEntity) - Constructor for class org.gcube.common.gxrest.response.entity.CodeEntity
- CodeFinder - Class in org.gcube.common.gxrest.response.outbound
-
Helper methods to find an error code in an enumeration implementing
ErrorCode. - CodeFinder() - Constructor for class org.gcube.common.gxrest.response.outbound.CodeFinder
- configProperty(String, String) - Method in class org.gcube.common.gxrest.request.GXWebTargetAdapterRequest
-
Sets a new property in the request.
- connect() - Method in class org.gcube.common.gxrest.request.GXHTTPStreamRequest
- connect() - Method in class org.gcube.common.gxrest.request.GXHTTPStringRequest
- connect() - Method in class org.gcube.common.gxrest.request.GXWebTargetAdapterRequest
D
- decodeElement(String) - Static method in class org.gcube.common.gxrest.response.entity.StackTraceEncoder
-
Decodes the string as stacktrace element.
- decodeTrace(String) - Static method in class org.gcube.common.gxrest.response.entity.StackTraceEncoder
- delete() - Method in class org.gcube.common.gxrest.request.GXHTTPStreamRequest
- delete() - Method in class org.gcube.common.gxrest.request.GXHTTPStringRequest
- delete() - Method in class org.gcube.common.gxrest.request.GXWebTargetAdapterRequest
E
- encodeElement(StackTraceElement) - Static method in class org.gcube.common.gxrest.response.entity.StackTraceEncoder
-
Encodes the stacktrace element as string.
- encodeTrace(StackTraceElement[], int) - Static method in class org.gcube.common.gxrest.response.entity.StackTraceEncoder
- ENTITY_CHAR_SEPARATOR - Static variable in class org.gcube.common.gxrest.response.entity.SerializableErrorEntity
- EntityTag - Class in org.gcube.common.gxrest.response.entity
-
Values of the HTTP Entity Tag, used as the value of an ETag response header.
- EntityTag() - Constructor for class org.gcube.common.gxrest.response.entity.EntityTag
- ErrorCode - Interface in org.gcube.common.gxrest.response.outbound
-
Interface for error codes.
F
- findAndConvert(ErrorCode, E[]) - Static method in class org.gcube.common.gxrest.response.outbound.CodeFinder
-
Finds and convert the given code as enum value.
- from(String) - Method in class org.gcube.common.gxrest.request.GXHTTPStreamRequest
- from(String) - Method in class org.gcube.common.gxrest.request.GXHTTPStringRequest
- from(String) - Method in class org.gcube.common.gxrest.request.GXWebTargetAdapterRequest
-
Sets the identity user agent associated to the request.
- fromJson(byte[], Class<T>) - Static method in class org.gcube.common.gxrest.response.inbound.JsonUtils
-
Deserializes the specified Json bytes into an object of the specified class
- fromJson(String, Class<T>) - Static method in class org.gcube.common.gxrest.response.inbound.JsonUtils
-
Deserializes the specified Json bytes into an object of the specified class
G
- get() - Method in class org.gcube.common.gxrest.request.GXHTTPStreamRequest
- get() - Method in class org.gcube.common.gxrest.request.GXHTTPStringRequest
- get() - Method in class org.gcube.common.gxrest.request.GXWebTargetAdapterRequest
- getEncodedTrace() - Method in class org.gcube.common.gxrest.response.entity.SerializableErrorEntity
- getErrorCode() - Method in class org.gcube.common.gxrest.response.inbound.GXInboundResponse
-
Gets the
ErrorCodeinside the entity. - getException() - Method in class org.gcube.common.gxrest.response.inbound.GXInboundResponse
-
Gets the
Exceptioninside the entity. - getExceptionClass() - Method in class org.gcube.common.gxrest.response.entity.SerializableErrorEntity
- getHeaderFields() - Method in class org.gcube.common.gxrest.response.inbound.GXInboundResponse
-
Returns an unmodifiable Map of the header fields.
- getHTTPCode() - Method in class org.gcube.common.gxrest.response.inbound.GXInboundResponse
-
Gets the status code from the HTTP response message.
- getId() - Method in class org.gcube.common.gxrest.response.entity.SerializableErrorEntity
- getId() - Method in interface org.gcube.common.gxrest.response.outbound.ErrorCode
-
Identifier of the code.
- getId() - Method in exception org.gcube.common.gxrest.response.outbound.LocalCodeException
- getInputStream() - Method in class org.gcube.common.gxrest.response.inbound.GXInboundResponse
- getMessage() - Method in class org.gcube.common.gxrest.response.entity.SerializableErrorEntity
- getMessage() - Method in class org.gcube.common.gxrest.response.inbound.GXInboundResponse
-
Gets the message in the response
- getMessage() - Method in interface org.gcube.common.gxrest.response.outbound.ErrorCode
-
The message associated to the code
- getMessage() - Method in exception org.gcube.common.gxrest.response.outbound.LocalCodeException
- getSize(SerializableErrorEntity, Class<?>, Type, Annotation[], MediaType) - Method in class org.gcube.common.gxrest.response.entity.SerializableErrorEntityTextWriter
-
Originally, the method has been called before
writeToto ascertain the length in bytes of the serialized form oft. - getSource() - Method in class org.gcube.common.gxrest.response.inbound.GXInboundResponse
- getStreamedContent() - Method in class org.gcube.common.gxrest.response.inbound.GXInboundResponse
-
Returns the content of the response as byte array.
- getStreamedContentAsString() - Method in class org.gcube.common.gxrest.response.inbound.GXInboundResponse
-
Gets the streamed content as a string, if possible.
- gxError - Static variable in class org.gcube.common.gxrest.response.entity.EntityTag
- GXHTTPStreamRequest - Class in org.gcube.common.gxrest.request
-
A context-aware request to a web application.
- GXHTTPStringRequest - Class in org.gcube.common.gxrest.request
-
A context-aware request to a web application.
- GXInboundResponse - Class in org.gcube.common.gxrest.response.inbound
-
The response returned from the web application.
- GXInboundResponse(Response) - Constructor for class org.gcube.common.gxrest.response.inbound.GXInboundResponse
-
Builds a new inbound response.
- GXInboundResponse(Response, MediaType[]) - Constructor for class org.gcube.common.gxrest.response.inbound.GXInboundResponse
-
Builds a new inbound response.
- GXInboundResponse(HttpURLConnection) - Constructor for class org.gcube.common.gxrest.response.inbound.GXInboundResponse
- GXOutboundErrorResponse - Class in org.gcube.common.gxrest.response.outbound
-
An outbound error response message for applications.
- GXOutboundSuccessResponse - Class in org.gcube.common.gxrest.response.outbound
-
An outbound success response message for applications.
- gxSuccess - Static variable in class org.gcube.common.gxrest.response.entity.EntityTag
- GXWebTargetAdapterRequest - Class in org.gcube.common.gxrest.request
-
A GX request based on JAX-RS.
H
- hasBAD_REQUESTCode() - Method in class org.gcube.common.gxrest.response.inbound.GXInboundResponse
-
Checks if the response has a BAD_REQUEST (400) HTTP status.
- hasCREATEDCode() - Method in class org.gcube.common.gxrest.response.inbound.GXInboundResponse
-
Checks if the response has a CREATED (201) HTTP status.
- hasErrorCode() - Method in class org.gcube.common.gxrest.response.inbound.GXInboundResponse
-
Checks if there is an
ErrorCodein the entity. - hasException() - Method in class org.gcube.common.gxrest.response.inbound.GXInboundResponse
-
Checks if there is an
Exceptionin the entity. - hasGXError() - Method in class org.gcube.common.gxrest.response.inbound.GXInboundResponse
-
Checks if the response was generated as a
GXOutboundErrorResponse. - hasNOT_ACCEPTABLECode() - Method in class org.gcube.common.gxrest.response.inbound.GXInboundResponse
-
Checks if the response has a NOT_ACCEPTABLE (406) HTTP status.
- hasOKCode() - Method in class org.gcube.common.gxrest.response.inbound.GXInboundResponse
-
Checks if the response has a OK (200) HTTP status.
- hasStackTrace() - Method in class org.gcube.common.gxrest.response.entity.SerializableErrorEntity
-
Checks if a stacktrace is available.
- head() - Method in class org.gcube.common.gxrest.request.GXHTTPStreamRequest
- head() - Method in class org.gcube.common.gxrest.request.GXHTTPStringRequest
- head() - Method in class org.gcube.common.gxrest.request.GXWebTargetAdapterRequest
- header(String, Object) - Method in class org.gcube.common.gxrest.request.GXWebTargetAdapterRequest
-
Add an arbitrary header.
- header(String, String) - Method in class org.gcube.common.gxrest.request.GXHTTPStreamRequest
- header(String, String) - Method in class org.gcube.common.gxrest.request.GXHTTPStringRequest
I
- isErrorResponse() - Method in class org.gcube.common.gxrest.response.inbound.GXInboundResponse
-
Checks if the response is in the range 4xx - 5xx .
- isReadable(Class<?>, Type, Annotation[], MediaType) - Method in class org.gcube.common.gxrest.response.entity.SerializableErrorEntityTextReader
-
Ascertain if the MessageBodyReader can produce an instance of a particular type.
- isSuccessResponse() - Method in class org.gcube.common.gxrest.response.inbound.GXInboundResponse
-
Checks if the response is in the range 2xx .
- isWriteable(Class<?>, Type, Annotation[], MediaType) - Method in class org.gcube.common.gxrest.response.entity.SerializableErrorEntityTextWriter
-
Ascertain if the MessageBodyWriter supports a particular type.
J
- JsonUtils - Class in org.gcube.common.gxrest.response.inbound
-
Manipulation of an
GXInboundResponse's content. - JsonUtils() - Constructor for class org.gcube.common.gxrest.response.inbound.JsonUtils
L
- LocalCodeException - Exception in org.gcube.common.gxrest.response.outbound
-
A local exception wrapping an
ErrorCode. - LocalCodeException(ErrorCode) - Constructor for exception org.gcube.common.gxrest.response.outbound.LocalCodeException
- logger - Static variable in class org.gcube.common.gxrest.request.GXHTTPStreamRequest
- logger - Static variable in class org.gcube.common.gxrest.request.GXHTTPStringRequest
N
- newCREATEResponse(URI) - Static method in class org.gcube.common.gxrest.response.outbound.GXOutboundSuccessResponse
-
Builds a new response with the CREATE HTTP status.
- newHTTPSRequest(String) - Static method in class org.gcube.common.gxrest.request.GXWebTargetAdapterRequest
-
Creates a new request.
- newHTTPSRequest(String, String) - Static method in class org.gcube.common.gxrest.request.GXWebTargetAdapterRequest
-
Creates a new secure request.
- newOKResponse() - Static method in class org.gcube.common.gxrest.response.outbound.GXOutboundSuccessResponse
-
Builds a new response with the OK HTTP status.
- newRequest(String) - Static method in class org.gcube.common.gxrest.request.GXHTTPStreamRequest
-
Creates a new request.
- newRequest(String) - Static method in class org.gcube.common.gxrest.request.GXHTTPStringRequest
-
Creates a new request.
- newRequest(String) - Static method in class org.gcube.common.gxrest.request.GXWebTargetAdapterRequest
-
Creates a new request.
O
- ofType(MediaType) - Method in class org.gcube.common.gxrest.response.outbound.GXOutboundSuccessResponse
-
Adds a type to the response message.
- ofType(String) - Method in class org.gcube.common.gxrest.response.outbound.GXOutboundSuccessResponse
-
Adds a type to the response message.
- options() - Method in class org.gcube.common.gxrest.request.GXHTTPStreamRequest
- options() - Method in class org.gcube.common.gxrest.request.GXHTTPStringRequest
- options() - Method in class org.gcube.common.gxrest.request.GXWebTargetAdapterRequest
- org.gcube.common.gxrest.methods - package org.gcube.common.gxrest.methods
- org.gcube.common.gxrest.request - package org.gcube.common.gxrest.request
-
Requests to web application.
- org.gcube.common.gxrest.response.entity - package org.gcube.common.gxrest.response.entity
-
Core data held by a response.
- org.gcube.common.gxrest.response.inbound - package org.gcube.common.gxrest.response.inbound
-
Inbound responses for client applications.
- org.gcube.common.gxrest.response.outbound - package org.gcube.common.gxrest.response.outbound
-
Outbound responses for web applications.
P
- patch() - Method in class org.gcube.common.gxrest.request.GXHTTPStreamRequest
- patch() - Method in class org.gcube.common.gxrest.request.GXHTTPStringRequest
- patch() - Method in class org.gcube.common.gxrest.request.GXWebTargetAdapterRequest
- path(String) - Method in class org.gcube.common.gxrest.request.GXHTTPStreamRequest
- path(String) - Method in class org.gcube.common.gxrest.request.GXHTTPStringRequest
- path(String) - Method in class org.gcube.common.gxrest.request.GXWebTargetAdapterRequest
-
Adds a positional path parameter to the request.
- post() - Method in class org.gcube.common.gxrest.request.GXHTTPStreamRequest
- post() - Method in class org.gcube.common.gxrest.request.GXHTTPStringRequest
- post() - Method in class org.gcube.common.gxrest.request.GXWebTargetAdapterRequest
- post(Entity<?>) - Method in class org.gcube.common.gxrest.request.GXWebTargetAdapterRequest
- post(InputStream) - Method in class org.gcube.common.gxrest.request.GXHTTPStreamRequest
- post(String) - Method in class org.gcube.common.gxrest.request.GXHTTPStringRequest
- put() - Method in class org.gcube.common.gxrest.request.GXHTTPStreamRequest
- put() - Method in class org.gcube.common.gxrest.request.GXHTTPStringRequest
- put() - Method in class org.gcube.common.gxrest.request.GXWebTargetAdapterRequest
- put(Entity<?>) - Method in class org.gcube.common.gxrest.request.GXWebTargetAdapterRequest
- put(InputStream) - Method in class org.gcube.common.gxrest.request.GXHTTPStreamRequest
- put(String) - Method in class org.gcube.common.gxrest.request.GXHTTPStringRequest
Q
- queryParams(Map<String, Object[]>) - Method in class org.gcube.common.gxrest.request.GXWebTargetAdapterRequest
-
Sets the query parameters for the request.
- queryParams(Map<String, String>) - Method in class org.gcube.common.gxrest.request.GXHTTPStreamRequest
- queryParams(Map<String, String>) - Method in class org.gcube.common.gxrest.request.GXHTTPStringRequest
R
- readFrom(Class<SerializableErrorEntity>, Type, Annotation[], MediaType, MultivaluedMap<String, String>, InputStream) - Method in class org.gcube.common.gxrest.response.entity.SerializableErrorEntityTextReader
-
Read a type from the
InputStream. - register(Class<?>) - Method in class org.gcube.common.gxrest.request.GXWebTargetAdapterRequest
-
Registers a class of a custom JAX-RS component (such as an extension provider or a
featuremeta-provider) to be instantiated and used in the scope of this request. - register(Object) - Method in class org.gcube.common.gxrest.request.GXWebTargetAdapterRequest
-
Registers an instance of a custom JAX-RS component (such as an extension provider or a
featuremeta-provider) to be instantiated and used in the scope of this request.
S
- SerializableErrorEntity - Class in org.gcube.common.gxrest.response.entity
-
An entity that can be serialized in a
WebCodeException. - SerializableErrorEntity() - Constructor for class org.gcube.common.gxrest.response.entity.SerializableErrorEntity
- SerializableErrorEntity(Exception) - Constructor for class org.gcube.common.gxrest.response.entity.SerializableErrorEntity
- SerializableErrorEntity(Exception, int) - Constructor for class org.gcube.common.gxrest.response.entity.SerializableErrorEntity
- SerializableErrorEntity(ErrorCode) - Constructor for class org.gcube.common.gxrest.response.entity.SerializableErrorEntity
- SerializableErrorEntityTextReader - Class in org.gcube.common.gxrest.response.entity
-
Text reader for
SerializableErrorEntity - SerializableErrorEntityTextReader() - Constructor for class org.gcube.common.gxrest.response.entity.SerializableErrorEntityTextReader
- SerializableErrorEntityTextWriter - Class in org.gcube.common.gxrest.response.entity
-
Text writer for
SerializableErrorEntity - SerializableErrorEntityTextWriter() - Constructor for class org.gcube.common.gxrest.response.entity.SerializableErrorEntityTextWriter
- setAcceptedResponseType(MediaType...) - Method in class org.gcube.common.gxrest.request.GXWebTargetAdapterRequest
-
Defines the accepted response media types.
- setEncodedTrace(String) - Method in class org.gcube.common.gxrest.response.entity.SerializableErrorEntity
-
Sets the enconded trace.
- setExceptionClass(String) - Method in class org.gcube.common.gxrest.response.entity.SerializableErrorEntity
-
Sets the exception class.
- setMessage(String) - Method in class org.gcube.common.gxrest.response.entity.SerializableErrorEntity
-
Sets the message.
- StackTraceEncoder - Class in org.gcube.common.gxrest.response.entity
-
Encoder for
StackTraceElement.
T
- throwErrorCode(ErrorCode) - Static method in class org.gcube.common.gxrest.response.outbound.GXOutboundErrorResponse
-
Throws the error code to the client.
- throwErrorCode(ErrorCode, Response.Status) - Static method in class org.gcube.common.gxrest.response.outbound.GXOutboundErrorResponse
-
Returns the error code to the client with the HTTP status.
- throwException(Exception) - Static method in class org.gcube.common.gxrest.response.outbound.GXOutboundErrorResponse
-
Throws the exception to the client.
- throwException(Exception, Response.Status) - Static method in class org.gcube.common.gxrest.response.outbound.GXOutboundErrorResponse
-
Throws the exception to the client.
- throwExceptionWithTrace(Exception, int) - Static method in class org.gcube.common.gxrest.response.outbound.GXOutboundErrorResponse
-
Throws the exception to the client.
- throwExceptionWithTrace(Exception, int, Response.Status) - Static method in class org.gcube.common.gxrest.response.outbound.GXOutboundErrorResponse
-
Throws the exception to the client.
- throwExceptionWithTrace(Exception, int, Response.Status, MediaType) - Static method in class org.gcube.common.gxrest.response.outbound.GXOutboundErrorResponse
-
Throws the exception to the client.
- throwHTTPErrorStatus(Response.Status, String) - Static method in class org.gcube.common.gxrest.response.outbound.GXOutboundErrorResponse
-
Returns the HTTP status to the client as error.
- trace() - Method in class org.gcube.common.gxrest.request.GXHTTPStreamRequest
- trace() - Method in class org.gcube.common.gxrest.request.GXHTTPStringRequest
- trace() - Method in class org.gcube.common.gxrest.request.GXWebTargetAdapterRequest
- tryConvertStreamedContentFromJson(Class<T>) - Method in class org.gcube.common.gxrest.response.inbound.GXInboundResponse
-
Tries to convert the content from its Json serialization, if possible.
W
- withBody(String) - Method in class org.gcube.common.gxrest.request.GXHTTPStringRequest
-
Sets the body of the request.
- withContent(InputStream) - Method in class org.gcube.common.gxrest.response.outbound.GXOutboundSuccessResponse
-
Reads from the stream the content to set in the response.
- withContent(Object) - Method in class org.gcube.common.gxrest.response.outbound.GXOutboundSuccessResponse
-
Sets the object as response's content.
- withContent(String) - Method in class org.gcube.common.gxrest.response.outbound.GXOutboundSuccessResponse
-
Sets the message as the response's content.
- withHeader(String, Object) - Method in class org.gcube.common.gxrest.response.outbound.GXOutboundSuccessResponse
-
Add an arbitrary header.
- writeTo(SerializableErrorEntity, Class<?>, Type, Annotation[], MediaType, MultivaluedMap<String, Object>, OutputStream) - Method in class org.gcube.common.gxrest.response.entity.SerializableErrorEntityTextWriter
-
Write a type to an HTTP message.
All Classes All Packages