Class DefaultEndpointMapper<U>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String computePath​(AtmosphereRequest req)  
      void configure​(AtmosphereConfig config)
      Configure an AtmosphereFramework object.
      U map​(java.lang.String path, java.util.Map<java.lang.String,​U> handlers)
      Mape the request to its associated endpoint.
      U map​(AtmosphereRequest req, java.util.Map<java.lang.String,​U> handlers)
      Mape the request to its associated endpoint.
      protected U match​(java.lang.String path, java.util.Map<java.lang.String,​U> handlers)  
      • Methods inherited from class java.lang.Object

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

      • DefaultEndpointMapper

        public DefaultEndpointMapper()
    • Method Detail

      • match

        protected U match​(java.lang.String path,
                          java.util.Map<java.lang.String,​U> handlers)
      • map

        public U map​(AtmosphereRequest req,
                     java.util.Map<java.lang.String,​U> handlers)
        Description copied from interface: EndpointMapper
        Mape the request to its associated endpoint.
        Specified by:
        map in interface EndpointMapper<U>
        Parameters:
        req - an AtmosphereRequest
        handlers - a map used for mapping the request to.
        Returns:
        U the result, or null if not mapped
      • map

        public U map​(java.lang.String path,
                     java.util.Map<java.lang.String,​U> handlers)
        Description copied from interface: EndpointMapper
        Mape the request to its associated endpoint.
        Specified by:
        map in interface EndpointMapper<U>
        Parameters:
        path - a URI
        handlers - a map used for mapping the request to.
        Returns:
        U the result, or null if not mapped