Package org.n52.iceland.util.http
Class HttpUtils
- java.lang.Object
-
- org.n52.iceland.util.http.HttpUtils
-
@Configurable public class HttpUtils extends Object
TODO JavaDoc- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description HttpUtils()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EventBusgetEventBus()static InputStreamgetInputStream(javax.servlet.http.HttpServletRequest req)BooleangetIsCountingOutputStream()voidsetEventBus(EventBus eventBus)voidsetIsCountingOutputStream(Boolean isCountingOutputStream)voidsetResponseWriterRepository(ResponseWriterRepository responseWriterRepository)voidwriteObject(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ServiceResponse sr, EncodingExceptionHandler owserHandler)voidwriteObject(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, MediaType contentType, Object object, EncodingExceptionHandler owserHandler)
-
-
-
Method Detail
-
getEventBus
public EventBus getEventBus()
-
setEventBus
@Inject public void setEventBus(EventBus eventBus)
-
setResponseWriterRepository
@Inject public void setResponseWriterRepository(ResponseWriterRepository responseWriterRepository)
-
getIsCountingOutputStream
public Boolean getIsCountingOutputStream()
-
setIsCountingOutputStream
@Setting(value="misc.counting-outputstream", required=false) public void setIsCountingOutputStream(Boolean isCountingOutputStream)
-
writeObject
public void writeObject(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, MediaType contentType, Object object, EncodingExceptionHandler owserHandler) throws IOException, HTTPException- Throws:
IOExceptionHTTPException
-
writeObject
public void writeObject(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ServiceResponse sr, EncodingExceptionHandler owserHandler) throws IOException, HTTPException- Throws:
IOExceptionHTTPException
-
getInputStream
public static InputStream getInputStream(javax.servlet.http.HttpServletRequest req) throws IOException
- Throws:
IOException
-
-