Package de.mhus.cherry.web.api
Interface CallContext
-
- All Known Subinterfaces:
InternalCallContext
public interface CallContext
-
-
Field Summary
Fields Modifier and Type Field Description static StringREQUEST_ATTRIBUTE_NAMEstatic StringREQUEST_REMOTE_IP
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectgetAttribute(String name)StringgetHttpHost()StringgetHttpMethod()StringgetHttpPath()javax.servlet.http.HttpServletRequestgetHttpRequest()javax.servlet.http.HttpServletResponsegetHttpResponse()javax.servlet.ServletgetHttpServlet()OutputStreamgetOutputStream()Use this to get the output stream from http response to get the filter chain stream.StringgetRemoteIp()WebSessiongetSession()StringgetSessionId()VirtualHostgetVirtualHost()WritergetWriter()This will return a writer bound to the output streambooleanisSession()voidsetAttribute(String name, Object value)
-
-
-
Field Detail
-
REQUEST_ATTRIBUTE_NAME
static final String REQUEST_ATTRIBUTE_NAME
- See Also:
- Constant Field Values
-
REQUEST_REMOTE_IP
static final String REQUEST_REMOTE_IP
- See Also:
- Constant Field Values
-
-
Method Detail
-
getHttpRequest
javax.servlet.http.HttpServletRequest getHttpRequest()
-
getHttpResponse
javax.servlet.http.HttpServletResponse getHttpResponse()
-
getVirtualHost
VirtualHost getVirtualHost()
-
getHttpPath
String getHttpPath()
-
getHttpServlet
javax.servlet.Servlet getHttpServlet()
-
getHttpMethod
String getHttpMethod()
-
getSession
WebSession getSession()
-
getSessionId
String getSessionId()
-
isSession
boolean isSession()
-
getHttpHost
String getHttpHost()
-
getRemoteIp
String getRemoteIp()
-
getOutputStream
OutputStream getOutputStream()
Use this to get the output stream from http response to get the filter chain stream.- Returns:
- current output stream
-
getWriter
Writer getWriter()
This will return a writer bound to the output stream- Returns:
- The writer
-
-