Class ResponseUtils

java.lang.Object
com.robothy.s3.rest.utils.ResponseUtils

public class ResponseUtils extends Object
LocalS3 response utils.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addAmzRequestId(com.robothy.netty.http.HttpResponse response)
    Add 'x-amz-request-id' header.
    static com.robothy.netty.http.HttpResponse
    addCommonHeaders(com.robothy.netty.http.HttpResponse response)
    Add common headers to the give response.
    static void
    addDateHeader(com.robothy.netty.http.HttpResponse response)
    Add 'date' header.
    static void
    addETag(com.robothy.netty.http.HttpResponse response, String etag)
    Add 'ETag' header.
    static void
    addServerHeader(com.robothy.netty.http.HttpResponse response)
    Add 'server' header.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public static void addETag(com.robothy.netty.http.HttpResponse response, String etag)
      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.