org.atmosphere.util
Interface EndpointMapper<U>

Type Parameters:
U -
All Known Implementing Classes:
DefaultEndpointMapper

public interface EndpointMapper<U>

This class is responsible for mapping request to handler like AtmosphereHandler or WebSocketHandler


Method Summary
 U map(AtmosphereRequest req, Map<String,U> handlers)
          Mape the request to its associated endpoint.
 U map(String path, Map<String,U> handlers)
          Mape the request to its associated endpoint.
 

Method Detail

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


Copyright © 2013. All Rights Reserved.