| Package | Description |
|---|---|
| org.gcube.common.gxrest.response.outbound |
Outbound responses for web applications.
|
| Modifier and Type | Method and Description |
|---|---|
static GXOutboundSuccessResponse |
GXOutboundSuccessResponse.newCREATEResponse(URI location)
Builds a new response with the CREATE HTTP status.
|
static GXOutboundSuccessResponse |
GXOutboundSuccessResponse.newOKResponse()
Builds a new response with the OK HTTP status.
|
GXOutboundSuccessResponse |
GXOutboundSuccessResponse.ofType(javax.ws.rs.core.MediaType type)
Adds a type to the response message.
|
GXOutboundSuccessResponse |
GXOutboundSuccessResponse.ofType(String type)
Adds a type to the response message.
|
GXOutboundSuccessResponse |
GXOutboundSuccessResponse.withContent(InputStream is)
Reads from the stream the content to set in the response.
|
GXOutboundSuccessResponse |
GXOutboundSuccessResponse.withContent(Object o)
Sets the object as response's content.
|
GXOutboundSuccessResponse |
GXOutboundSuccessResponse.withContent(String message)
Sets the message as the response's content.
|
GXOutboundSuccessResponse |
GXOutboundSuccessResponse.withHeader(String name,
Object value)
Add an arbitrary header.
|
Copyright © 2019. All Rights Reserved.