Package com.adaptris.core.http.jetty
Class JettyWrapper
- java.lang.Object
-
- com.adaptris.core.http.jetty.JettyWrapper
-
public class JettyWrapper extends java.lang.Object
Class that contains information that about the jetty request/response.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
JettyWrapper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JettyConsumerMonitor
getMonitor()
javax.servlet.http.HttpServletRequest
getRequest()
javax.servlet.http.HttpServletResponse
getResponse()
protected void
lock()
void
setMonitor(JettyConsumerMonitor m)
void
setRequest(javax.servlet.http.HttpServletRequest request)
void
setResponse(javax.servlet.http.HttpServletResponse r)
protected void
unlock()
protected static JettyWrapper
unwrap(AdaptrisMessage msg)
Get a wrapper with null protection.JettyWrapper
withMonitor(JettyConsumerMonitor b)
JettyWrapper
withRequest(javax.servlet.http.HttpServletRequest b)
JettyWrapper
withResponse(javax.servlet.http.HttpServletResponse b)
-
-
-
Method Detail
-
lock
protected void lock() throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
unlock
protected void unlock()
-
unwrap
protected static JettyWrapper unwrap(AdaptrisMessage msg)
Get a wrapper with null protection.All it means is that if the wrapper doesn't exist; then you have an empty wrapper with no monitor and no response.
-
getMonitor
public JettyConsumerMonitor getMonitor()
-
setMonitor
public void setMonitor(JettyConsumerMonitor m)
-
withMonitor
public JettyWrapper withMonitor(JettyConsumerMonitor b)
-
getResponse
public javax.servlet.http.HttpServletResponse getResponse()
-
setResponse
public void setResponse(javax.servlet.http.HttpServletResponse r)
-
withResponse
public JettyWrapper withResponse(javax.servlet.http.HttpServletResponse b)
-
getRequest
public javax.servlet.http.HttpServletRequest getRequest()
-
setRequest
public void setRequest(javax.servlet.http.HttpServletRequest request)
-
withRequest
public JettyWrapper withRequest(javax.servlet.http.HttpServletRequest b)
-
-