org.atmosphere.util
Class DefaultEndpointMapper<U>
java.lang.Object
org.atmosphere.util.DefaultEndpointMapper<U>
- All Implemented Interfaces:
- EndpointMapper<U>
public class DefaultEndpointMapper<U>
- extends Object
- implements EndpointMapper<U>
Default implementation of the EndpointMapper used by the AsynchronousProcessor
and DefaultWebSocketProcessor
- Author:
- Jeanfrancois Arcand
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultEndpointMapper
public DefaultEndpointMapper()
match
protected U match(String path,
Map<String,U> handlers)
map
public U map(AtmosphereRequest req,
Map<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 AtmosphereRequesthandlers - a map used for mapping the request to.
- Returns:
- U the result, or null if not mapped
map
public U map(String path,
Map<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 URIhandlers - a map used for mapping the request to.
- Returns:
- U the result, or null if not mapped
Copyright © 2013. All Rights Reserved.