|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.catalina.connector.HttpEventImpl
public class HttpEventImpl
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.jboss.servlet.http.HttpEvent |
---|
org.jboss.servlet.http.HttpEvent.EventType |
Field Summary | |
---|---|
protected org.jboss.servlet.http.HttpEvent.EventType |
eventType
Event type. |
protected Request |
request
Associated request. |
protected Response |
response
Associated response. |
protected static StringManager |
sm
The string manager for this package. |
Constructor Summary | |
---|---|
HttpEventImpl(Request request,
Response response)
|
Method Summary | |
---|---|
void |
clear()
Clear the event. |
void |
close()
Ends the request, which marks the end of the event stream. |
javax.servlet.http.HttpServletRequest |
getHttpServletRequest()
Returns the HttpServletRequest. |
javax.servlet.http.HttpServletResponse |
getHttpServletResponse()
Returns the HttpServletResponse. |
org.jboss.servlet.http.HttpEvent.EventType |
getType()
Returns the event type. |
boolean |
isReadReady()
Returns true when data may be read from the connection (the flag becomes false if no data is available to read). |
boolean |
isWriteReady()
Returns true when data may be written to the connection (the flag becomes false when the client is unable to accept data fast enough). |
void |
resume()
Resume will cause the Servlet container to send a generic event to the Servlet, where the request can be processed synchronously (for example, it is possible to use this to complete the request after some asynchronous processing is done). |
void |
setTimeout(int timeout)
This method sets the timeout in milliseconds of idle time on the connection. |
void |
setType(org.jboss.servlet.http.HttpEvent.EventType eventType)
|
void |
suspend()
Suspend processing of the connection until the configured timeout occurs, or resume() is called. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static StringManager sm
protected Request request
protected Response response
protected org.jboss.servlet.http.HttpEvent.EventType eventType
Constructor Detail |
---|
public HttpEventImpl(Request request, Response response)
Method Detail |
---|
public void clear()
public void setType(org.jboss.servlet.http.HttpEvent.EventType eventType)
public void close() throws java.io.IOException
org.jboss.servlet.http.HttpEvent
close
in interface org.jboss.servlet.http.HttpEvent
java.io.IOException
- if an IO exception occurspublic org.jboss.servlet.http.HttpEvent.EventType getType()
org.jboss.servlet.http.HttpEvent
getType
in interface org.jboss.servlet.http.HttpEvent
#EventType
public javax.servlet.http.HttpServletRequest getHttpServletRequest()
org.jboss.servlet.http.HttpEvent
getHttpServletRequest
in interface org.jboss.servlet.http.HttpEvent
public javax.servlet.http.HttpServletResponse getHttpServletResponse()
org.jboss.servlet.http.HttpEvent
getHttpServletResponse
in interface org.jboss.servlet.http.HttpEvent
public void setTimeout(int timeout)
org.jboss.servlet.http.HttpEvent
setTimeout
in interface org.jboss.servlet.http.HttpEvent
timeout
- The timeout in milliseconds for this connection, must be a positive value, larger than 0public boolean isReadReady()
org.jboss.servlet.http.HttpEvent
isReadReady
in interface org.jboss.servlet.http.HttpEvent
public boolean isWriteReady()
org.jboss.servlet.http.HttpEvent
isWriteReady
in interface org.jboss.servlet.http.HttpEvent
public void resume()
org.jboss.servlet.http.HttpEvent
resume
in interface org.jboss.servlet.http.HttpEvent
public void suspend()
org.jboss.servlet.http.HttpEvent
suspend
in interface org.jboss.servlet.http.HttpEvent
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |