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