Interface EndpointMapper<U>

Type Parameters:
U -
All Superinterfaces:
AtmosphereConfigAware
All Known Implementing Classes:
DefaultEndpointMapper

public interface EndpointMapper<U> extends AtmosphereConfigAware
This class is responsible for mapping request to handler like AtmosphereHandler or WebSocketHandler
Author:
Jeanfrancois Arcand
  • Method Details

    • map

      U map(AtmosphereRequest req, Map<String,U> handlers)
      Mape the request to its associated endpoint.
      Parameters:
      req - an AtmosphereRequest
      handlers - a map used for mapping the request to.
      Returns:
      U the result, or null if not mapped
    • map

      U map(String path, Map<String,U> handlers)
      Mape the request to its associated endpoint.
      Parameters:
      path - a URI
      handlers - a map used for mapping the request to.
      Returns:
      U the result, or null if not mapped