|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echoservlet.Connection
nextapp.echoservlet.ThreadSafeConnection
public class ThreadSafeConnection
Thread safe implementation of Connection, that throws a ThreadSensitiveOperation when an operation is called that is not shareable between multiple threads.
| Field Summary |
|---|
| Fields inherited from class nextapp.echoservlet.Connection |
|---|
INSTANCE_PEER_SESSION_KEY_PREFIX, serverStartUpDate |
| Constructor Summary | |
|---|---|
ThreadSafeConnection(Connection decorated)
|
|
| Method Summary | |
|---|---|
java.lang.String |
correctUri(java.lang.String uri)
Corrects relative-path URIs to include the application name, such that they can properly retrieve the desired resource. |
java.lang.String |
getApplicationUri()
Returns the URI of the application. |
Id |
getIdParameter(java.lang.String name)
Returns the specified request parameter as an Id value. |
InstancePeer |
getInstancePeer()
Returns the InstancePeer associated with this connection. |
java.io.OutputStream |
getOutputStream()
Returns the OutputStream object that may be used to
generate a response. |
java.lang.String |
getParameter(java.lang.String name)
Returns the value of the HTTP parameter associated with the given name. |
java.util.Enumeration |
getParameterNames()
Returns an enumeration of all parameter names passed in the request. |
javax.servlet.http.HttpServletRequest |
getRequest()
Returns the HttpServletRequest wrapped by this
Connection. |
javax.servlet.http.HttpServletResponse |
getResponse()
Returns the HttpServletResponse wrapped by this
Connection. |
EchoServer |
getServer()
Returns the EchoServer wrapped by this
Connection. |
VariableData |
getVariableData()
Returns the VariableData associated with this
Connection. |
java.io.PrintWriter |
getWriter()
Returns the PrintWriter object that may be used to
generate a response. |
void |
setContentType(ContentType contentType)
Sets the content type of the response. |
| Methods inherited from class nextapp.echoservlet.Connection |
|---|
getCacheIdPrefix, retrieveService, setReponse |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThreadSafeConnection(Connection decorated)
| Method Detail |
|---|
public java.lang.String correctUri(java.lang.String uri)
Connection
correctUri in class Connectionuri - The URI to correct.
public java.lang.String getApplicationUri()
Connection
getApplicationUri in class Connectionpublic Id getIdParameter(java.lang.String name)
Connection
getIdParameter in class Connectionname - The parameter name.
public java.lang.String getParameter(java.lang.String name)
Connection
getParameter in class Connectionname - The name of the parameter to return.
public java.util.Enumeration getParameterNames()
Connection
getParameterNames in class Connectionpublic VariableData getVariableData()
ConnectionVariableData associated with this
Connection. If an InstancePeer exists, its
VariableData is returned, otherwise, a temporary
VariableData object is returned that contains defaults
used for initialization.
getVariableData in class ConnectionVariableData object associated with this
Connection.public InstancePeer getInstancePeer()
ConnectionInstancePeer associated with this connection.
If the session has not been initialized, null is returned.
getInstancePeer in class ConnectionInstancePeer associated with this connection.public javax.servlet.http.HttpServletRequest getRequest()
ConnectionHttpServletRequest wrapped by this
Connection.
getRequest in class ConnectionHttpServletRequest wrapped by this
Connection.public javax.servlet.http.HttpServletResponse getResponse()
ConnectionHttpServletResponse wrapped by this
Connection.
getResponse in class ConnectionHttpServletResponse wrapped by this
Connection.public EchoServer getServer()
ConnectionEchoServer wrapped by this
Connection.
getServer in class ConnectionEchoServer wrapped by this
Connection.public java.io.PrintWriter getWriter()
ConnectionPrintWriter object that may be used to
generate a response. This method may be called once. If it is called, the
getOuputStream() method may not be called. This method wraps a call to
HttpServletResponse.getWriter(). The
PrintWriter will be closed by the servlet container.
getWriter in class ConnectionPrintWriter object that may be used to
generate a response to the client.public void setContentType(ContentType contentType)
Connection
setContentType in class ConnectioncontentType - The content type of the response.public java.io.OutputStream getOutputStream()
ConnectionOutputStream object that may be used to
generate a response. This method may be called once. If it is called, the
getWriter() method may not be called. This method wraps a call to
HttpServletResponse.getOutputStream(). The
OutputStream will be closed by the servlet container.
getOutputStream in class ConnectionOutputStream object that may be used to
generate a response to the client.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||