Package org.atmosphere.util
Class DefaultEndpointMapper<U>
java.lang.Object
org.atmosphere.util.DefaultEndpointMapper<U>
- All Implemented Interfaces:
AtmosphereConfigAware,EndpointMapper<U>
Default implementation of the
EndpointMapper used by the AsynchronousProcessor
and DefaultWebSocketProcessor- Author:
- Jeanfrancois Arcand
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(AtmosphereConfig config) Configure an AtmosphereFramework object.Mape the request to its associated endpoint.map(AtmosphereRequest req, Map<String, U> handlers) Mape the request to its associated endpoint.protected U
-
Constructor Details
-
DefaultEndpointMapper
public DefaultEndpointMapper()
-
-
Method Details
-
match
-
computePath
-
configure
Description copied from interface:AtmosphereConfigAwareConfigure an AtmosphereFramework object.- Specified by:
configurein interfaceAtmosphereConfigAware- Parameters:
config-AtmosphereConfig
-
map
Description copied from interface:EndpointMapperMape the request to its associated endpoint.- Specified by:
mapin interfaceEndpointMapper<U>- Parameters:
req- anAtmosphereRequesthandlers- a map used for mapping the request to.- Returns:
- U the result, or null if not mapped
-
map
Description copied from interface:EndpointMapperMape the request to its associated endpoint.- Specified by:
mapin interfaceEndpointMapper<U>- Parameters:
path- a URIhandlers- a map used for mapping the request to.- Returns:
- U the result, or null if not mapped
-