public class HTTPUtils extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
HTTPUtils.GenericWritable |
private static class |
HTTPUtils.ServiceResponseWritable |
static interface |
HTTPUtils.Writable |
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOGGER |
Modifier | Constructor and Description |
---|---|
private |
HTTPUtils() |
Modifier and Type | Method and Description |
---|---|
private static boolean |
checkHeader(javax.servlet.http.HttpServletRequest req,
String headerName,
String value) |
static List<MediaType> |
getAcceptHeader(javax.servlet.http.HttpServletRequest req) |
static InputStream |
getInputStream(javax.servlet.http.HttpServletRequest req) |
static boolean |
isGzipEncoded(javax.servlet.http.HttpServletRequest req) |
static boolean |
supportsGzipEncoding(javax.servlet.http.HttpServletRequest req) |
static void |
writeObject(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
MediaType contentType,
HTTPUtils.Writable writable) |
static void |
writeObject(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
MediaType contentType,
Object object) |
static void |
writeObject(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ServiceResponse sr) |
public static boolean supportsGzipEncoding(javax.servlet.http.HttpServletRequest req)
public static boolean isGzipEncoded(javax.servlet.http.HttpServletRequest req)
private static boolean checkHeader(javax.servlet.http.HttpServletRequest req, String headerName, String value)
public static List<MediaType> getAcceptHeader(javax.servlet.http.HttpServletRequest req) throws HTTPException
HTTPException
public static InputStream getInputStream(javax.servlet.http.HttpServletRequest req) throws IOException
IOException
public static void writeObject(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, MediaType contentType, Object object) throws IOException
IOException
public static void writeObject(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ServiceResponse sr) throws IOException
IOException
public static void writeObject(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, MediaType contentType, HTTPUtils.Writable writable) throws IOException
IOException
Copyright © 2012-2014 52north.org. All Rights Reserved.