@Configurable public class HttpUtils extends java.lang.Object
| Constructor and Description |
|---|
HttpUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<MediaType> |
getAcceptHeader(javax.servlet.http.HttpServletRequest req)
Deprecated.
|
EventBus |
getEventBus() |
static java.io.InputStream |
getInputStream(javax.servlet.http.HttpServletRequest req) |
java.lang.Boolean |
getIsCountingOutputStream() |
static boolean |
isGzipEncoded(javax.servlet.http.HttpServletRequest req)
Deprecated.
|
void |
setEventBus(EventBus eventBus) |
void |
setIsCountingOutputStream(java.lang.Boolean isCountingOutputStream) |
void |
setResponseWriterRepository(ResponseWriterRepository responseWriterRepository) |
static boolean |
supportsGzipEncoding(javax.servlet.http.HttpServletRequest req)
Deprecated.
|
void |
writeObject(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
MediaType contentType,
java.lang.Object object,
EncodingExceptionHandler owserHandler) |
void |
writeObject(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ServiceResponse sr,
EncodingExceptionHandler owserHandler) |
public EventBus getEventBus()
@Inject public void setEventBus(EventBus eventBus)
@Inject public void setResponseWriterRepository(ResponseWriterRepository responseWriterRepository)
public java.lang.Boolean getIsCountingOutputStream()
@Setting(value="statistics.counting-outputstream") public void setIsCountingOutputStream(java.lang.Boolean isCountingOutputStream)
public void writeObject(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
MediaType contentType,
java.lang.Object object,
EncodingExceptionHandler owserHandler)
throws java.io.IOException,
HTTPException
java.io.IOExceptionHTTPExceptionpublic void writeObject(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ServiceResponse sr,
EncodingExceptionHandler owserHandler)
throws java.io.IOException,
HTTPException
java.io.IOExceptionHTTPException@Deprecated public static boolean supportsGzipEncoding(javax.servlet.http.HttpServletRequest req)
@Deprecated public static boolean isGzipEncoded(javax.servlet.http.HttpServletRequest req)
@Deprecated public static java.util.List<MediaType> getAcceptHeader(javax.servlet.http.HttpServletRequest req)
public static java.io.InputStream getInputStream(javax.servlet.http.HttpServletRequest req)
throws java.io.IOException
java.io.IOExceptionCopyright © 2015–2018 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.