public class GXOutboundSuccessResponse extends Object
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
build()
Builds the response to return.
|
static GXOutboundSuccessResponse |
newCREATEResponse(URI location)
Builds a new response with the CREATE HTTP status.
|
static GXOutboundSuccessResponse |
newOKResponse()
Builds a new response with the OK HTTP status.
|
GXOutboundSuccessResponse |
ofType(javax.ws.rs.core.MediaType type)
Adds a type to the response message.
|
GXOutboundSuccessResponse |
ofType(String type)
Adds a type to the response message.
|
GXOutboundSuccessResponse |
withContent(InputStream is)
Reads from the stream the content to set in the response.
|
GXOutboundSuccessResponse |
withContent(Object o)
Sets the object as response's content.
|
GXOutboundSuccessResponse |
withContent(String message)
Sets the message as the response's content.
|
public static GXOutboundSuccessResponse newOKResponse()
public static GXOutboundSuccessResponse newCREATEResponse(URI location)
public GXOutboundSuccessResponse withContent(Object o) throws IOException
o - IOExceptionpublic GXOutboundSuccessResponse withContent(InputStream is) throws IOException
o - IOExceptionpublic GXOutboundSuccessResponse withContent(String message)
message - public GXOutboundSuccessResponse ofType(javax.ws.rs.core.MediaType type)
type - public GXOutboundSuccessResponse ofType(String type)
type - public javax.ws.rs.core.Response build()
Copyright © 2018. All Rights Reserved.