Enum RequestUtils

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<RequestUtils>

    public enum RequestUtils
    extends java.lang.Enum<RequestUtils>
    Static utility methods for various requests.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.util.regex.Pattern BUCKET_REGEX  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String calculateV4Sig​(jakarta.ws.rs.container.ContainerRequestContext request, java.net.URI requestUri, java.lang.String signedHeaders, java.lang.String accessKey, java.lang.String secretKey, java.lang.String region)  
      static java.util.Map<java.lang.String,​java.lang.String> metadataHeaders​(org.glassfish.jersey.server.ContainerRequest req)  
      static <T> T readJaxbEntity​(java.lang.Class<T> cls, java.io.InputStream input)  
      static <T> T readJaxbEntity​(java.lang.Class<T> cls, java.lang.String content)  
      static RequestUtils valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static RequestUtils[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      static java.lang.String writeJaxbEntity​(java.lang.Object xml)  
      static jakarta.ws.rs.core.Response.ResponseBuilder writeMetadataHeaders​(jakarta.ws.rs.core.Response.ResponseBuilder res, java.util.Map<java.lang.String,​java.lang.String> headers)  
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • BUCKET_REGEX

        public static final java.util.regex.Pattern BUCKET_REGEX
    • Method Detail

      • values

        public static RequestUtils[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (RequestUtils c : RequestUtils.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static RequestUtils valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • readJaxbEntity

        public static <T> T readJaxbEntity​(java.lang.Class<T> cls,
                                           java.io.InputStream input)
      • readJaxbEntity

        public static <T> T readJaxbEntity​(java.lang.Class<T> cls,
                                           java.lang.String content)
      • writeJaxbEntity

        public static java.lang.String writeJaxbEntity​(java.lang.Object xml)
      • calculateV4Sig

        public static final java.lang.String calculateV4Sig​(jakarta.ws.rs.container.ContainerRequestContext request,
                                                            java.net.URI requestUri,
                                                            java.lang.String signedHeaders,
                                                            java.lang.String accessKey,
                                                            java.lang.String secretKey,
                                                            java.lang.String region)
      • metadataHeaders

        public static final java.util.Map<java.lang.String,​java.lang.String> metadataHeaders​(org.glassfish.jersey.server.ContainerRequest req)
      • writeMetadataHeaders

        public static final jakarta.ws.rs.core.Response.ResponseBuilder writeMetadataHeaders​(jakarta.ws.rs.core.Response.ResponseBuilder res,
                                                                                             java.util.Map<java.lang.String,​java.lang.String> headers)