Package net.jolivier.s3api.http
Enum RequestUtils
- java.lang.Object
-
- java.lang.Enum<RequestUtils>
-
- net.jolivier.s3api.http.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.PatternBUCKET_REGEX
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringcalculateV4Sig(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> TreadJaxbEntity(java.lang.Class<T> cls, java.io.InputStream input)static <T> TreadJaxbEntity(java.lang.Class<T> cls, java.lang.String content)static RequestUtilsvalueOf(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.StringwriteJaxbEntity(java.lang.Object xml)static jakarta.ws.rs.core.Response.ResponseBuilderwriteMetadataHeaders(jakarta.ws.rs.core.Response.ResponseBuilder res, java.util.Map<java.lang.String,java.lang.String> headers)
-
-
-
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 namejava.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)
-
-