Package com.robothy.s3.rest.utils
Class ResponseUtils
java.lang.Object
com.robothy.s3.rest.utils.ResponseUtils
LocalS3 response utils.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddAmzRequestId(com.robothy.netty.http.HttpResponse response) Add 'x-amz-request-id' header.static com.robothy.netty.http.HttpResponseaddCommonHeaders(com.robothy.netty.http.HttpResponse response) Add common headers to the give response.static voidaddDateHeader(com.robothy.netty.http.HttpResponse response) Add 'date' header.static voidAdd 'ETag' header.static voidaddServerHeader(com.robothy.netty.http.HttpResponse response) Add 'server' header.
-
Constructor Details
-
ResponseUtils
public ResponseUtils()
-
-
Method Details
-
addDateHeader
public static void addDateHeader(com.robothy.netty.http.HttpResponse response) Add 'date' header.- Parameters:
response- the response to add 'date' header.
-
addAmzRequestId
public static void addAmzRequestId(com.robothy.netty.http.HttpResponse response) Add 'x-amz-request-id' header.- Parameters:
response- the response to add 'x-amz-request-id' header.
-
addServerHeader
public static void addServerHeader(com.robothy.netty.http.HttpResponse response) Add 'server' header.- Parameters:
response- the response to add 'server' header.
-
addETag
Add 'ETag' header.- Parameters:
response- the response to add 'ETag' header.etag- the etag to add
-
addCommonHeaders
public static com.robothy.netty.http.HttpResponse addCommonHeaders(com.robothy.netty.http.HttpResponse response) Add common headers to the give response.- Parameters:
response- HTTP response to set common headers.- Returns:
- the response parameter.
-