Package com.isomorphic.messaging

# Class MessagingServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.isomorphic.servlet.BaseServlet
com.isomorphic.messaging.MessagingServlet

All Implemented Interfaces:
  `jakarta.servlet.Servlet`, `jakarta.servlet.ServletConfig`, `Serializable`

public class MessagingServlet extends BaseServlet
The MessagingServlet is part of the optional Real-Time Messaging module. This servlet handles asynchronous delivery of real-time messages to the client. For real-time messaging to work, this servlet must be registered in you web.xml and configured to intercept the following url-pattern: `/isomorphic/messaging/*`

Configuration of this servlet is controlled entirely through server.properties. Refer to the Real-Time Messaging QuickRef for configuration options an details.

NOTE: This servlet is configured to automatically set character encoding on requests and responses to UTF-8. If you wish to force a different encoding, you can do so by specifying an `init-param` in your web.xml file, like so:

     <servlet>
       <servlet-name>MessagingServlet</servlet-name>
       <servlet-class>com.isomorphic.messaging.MessagingServlet</servlet-class>
       <init-param>
         <param-name>encoding</param-name>
         <param-value>some-other-encoding</param-value>
       </init-param>
     </servlet>

If you wish to switch off explicit encoding altogether, use the `init-param` to set a value of "none".

Please see the client-side documentation on Internationalization for a discussion of why this procedure is necessary.

See Also:
  - Serialized Form

- ## Method Summary

  ### Methods inherited from class com.isomorphic.servlet.BaseServlet

  `handleError, handleError`