Class AbstractTransport

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String decodePostData​(java.lang.String contentType, java.lang.String data)  
      void destroy()  
      protected java.lang.String extractSessionId​(org.atmosphere.cpr.AtmosphereRequest request)  
      static java.lang.String extractString​(java.io.Reader reader)
      Used to extract POST body from the request
      protected boolean isDisconnectRequest​(org.atmosphere.cpr.AtmosphereRequest request)
      Check if there is a disconnect message in the POST Body
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • SESSION_KEY

        public static final java.lang.String SESSION_KEY
      • POST_MESSAGE_RECEIVED

        public static final java.lang.String POST_MESSAGE_RECEIVED
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractTransport

        public AbstractTransport()
    • Method Detail

      • extractSessionId

        protected java.lang.String extractSessionId​(org.atmosphere.cpr.AtmosphereRequest request)
      • extractString

        public static java.lang.String extractString​(java.io.Reader reader)
        Used to extract POST body from the request
        Parameters:
        reader -
        Returns:
      • destroy

        public void destroy()
        Specified by:
        destroy in interface Transport
      • decodePostData

        protected java.lang.String decodePostData​(java.lang.String contentType,
                                                  java.lang.String data)
      • isDisconnectRequest

        protected boolean isDisconnectRequest​(org.atmosphere.cpr.AtmosphereRequest request)
        Check if there is a disconnect message in the POST Body
        Parameters:
        request -
        Returns: