import javax.servlet.http.HttpServletResponse;
import org.apache.catalina.CometEvent;
+import org.apache.catalina.util.StringManager;
public class CometEventImpl implements CometEvent {
+ /**
+ * The string manager for this package.
+ */
+ protected static StringManager sm =
+ StringManager.getManager(Constants.Package);
+
+
public CometEventImpl(Request request, Response response) {
this.request = request;
this.response = response;
}
public void close() throws IOException {
+ if (request == null) {
+ throw new IllegalStateException(sm.getString("cometEvent.nullRequest"));
+ }
request.setComet(false);
response.finishResponse();
}
#
coyoteAdapter.service=An exception or error occurred in the container during the request processing
+coyoteAdapter.read=The servlet did not read all available bytes during the processing of the read event
#
# CoyoteResponse
coyoteRequest.attributeEvent=Exception thrown by attributes event listener
coyoteRequest.parseParameters=Exception thrown whilst processing POSTed parameters
coyoteRequest.postTooLarge=Parameters were not parsed because the size of the posted data was too big. Use the maxPostSize attribute of the connector to resolve this if the application should accept large POSTs.
-requestFacade.nullRequest=Null request object
-responseFacade.nullResponse=Null response object
+requestFacade.nullRequest=The request object has been recycled and is no longer associated with this facade
+responseFacade.nullResponse=The response object has been recycled and is no longer associated with this facade
+cometEvent.nullRequest=The event object has been recycled and is no longer associated with a request
#
# MapperListener