public class S3ErrorResponse extends Object
Constructor and Description |
---|
S3ErrorResponse() |
Modifier and Type | Method and Description |
---|---|
static javax.ws.rs.core.Response |
createErrorResponse(Throwable e,
String resource)
Creates an error response using the given exception.
|
static io.netty.handler.codec.http.HttpResponse |
createNettyErrorResponse(S3Exception e,
String resource)
Creates an error response using the given exception.
|
static io.netty.handler.codec.http.HttpResponse |
createNettyErrorResponse(Throwable e,
String resource)
Creates an error response using the given exception.
|
static io.netty.handler.codec.http.FullHttpResponse |
generateS3ErrorResponse(io.netty.handler.codec.http.HttpResponseStatus responseStatus,
String content,
io.netty.util.AsciiString contentType)
Generates standard S3 error http response.
|
public static javax.ws.rs.core.Response createErrorResponse(Throwable e, String resource)
e
- a Throwable
objectresource
- an S3 resource keyResponse
public static io.netty.handler.codec.http.HttpResponse createNettyErrorResponse(Throwable e, String resource)
e
- a Throwable
objectresource
- an S3 resource keyResponse
public static io.netty.handler.codec.http.HttpResponse createNettyErrorResponse(S3Exception e, String resource)
e
- the exception to be converted into Error
and encoded into XMLresource
- resourcepublic static io.netty.handler.codec.http.FullHttpResponse generateS3ErrorResponse(io.netty.handler.codec.http.HttpResponseStatus responseStatus, String content, io.netty.util.AsciiString contentType)
responseStatus
- http status of the http responsecontent
- content of the http responsecontentType
- content type of the http responseCopyright © 2023. All Rights Reserved.