|
NextApp Echo3 v3.0.b4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echo.webcontainer.Connection
public class Connection
A representation of a connection to the server by the client, encapsulating
the servlet request and response objects, and providing access to the
relevant application instance.
Connection
s also manage the life-cycle of
UserInstance
s within the HttpSession
.
Method Summary | |
---|---|
java.io.OutputStream |
getOutputStream()
Returns the OutputStream object that may be used to
generate a response. |
java.lang.Object |
getProperty(java.lang.String key)
Returns a property from the Connection -persistent
property map. |
javax.servlet.http.HttpServletRequest |
getRequest()
Returns the HttpServletRequest wrapped by this
Connection . |
javax.servlet.http.HttpServletResponse |
getResponse()
Returns the HttpServletResponse wrapped by this
Connection . |
WebContainerServlet |
getServlet()
Returns the WebContainerServlet wrapped by this
Connection . |
UserInstance |
getUserInstance()
Returns the UserInstance 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. |
void |
setProperty(java.lang.String key,
java.lang.Object value)
Sets a property in the Connection -persistent
property map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.io.OutputStream getOutputStream()
OutputStream
object that may be used to
generate a response. This method may be called once. If it is called,
the getPrintWriter() method may not be called. This method wraps a
call to HttpServletResponse.getOutputStream()
. The
OutputStream
will be closed by the servlet container.
OutputStream
object that may be used to
generate a response to the clientpublic java.lang.Object getProperty(java.lang.String key)
Connection
-persistent
property map. (Properties are disposed of when Connection
has completed).
key
- the property key (for namespacing purposes, keys should
be prefaced with the full class name of the object setting the
property)
public javax.servlet.http.HttpServletRequest getRequest()
HttpServletRequest
wrapped by this
Connection
.
HttpServletRequest
wrapped by this
Connection
public javax.servlet.http.HttpServletResponse getResponse()
HttpServletResponse
wrapped by this
Connection
.
HttpServletResponse
wrapped by this
Connection
public WebContainerServlet getServlet()
WebContainerServlet
wrapped by this
Connection
.
WebContainerServlet
wrapped by this
Connection
public UserInstance getUserInstance()
UserInstance
associated with
this connection. If the session has not been initialized, null is
returned.
UserInstance
associated with
this connectionpublic java.io.PrintWriter getWriter()
PrintWriter
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.
PrintWriter
object that may be used to
generate a response to the clientpublic void setContentType(ContentType contentType)
contentType
- the content type of the responsepublic void setProperty(java.lang.String key, java.lang.Object value)
Connection
-persistent
property map. (Properties are disposed of when Connection
has completed).
key
- the property key (for namespacing purposes, keys should
be prefaced with the full class name of the object setting the
property)value
- the new property value
|
NextApp Echo3 v3.0.b4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |