Package org.atmosphere.util
Class DefaultEndpointMapper<U>
- java.lang.Object
-
- org.atmosphere.util.DefaultEndpointMapper<U>
-
- All Implemented Interfaces:
AtmosphereConfigAware,EndpointMapper<U>
public class DefaultEndpointMapper<U> extends java.lang.Object implements EndpointMapper<U>
Default implementation of theEndpointMapperused by theAsynchronousProcessorandDefaultWebSocketProcessor- Author:
- Jeanfrancois Arcand
-
-
Constructor Summary
Constructors Constructor Description DefaultEndpointMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringcomputePath(AtmosphereRequest req)voidconfigure(AtmosphereConfig config)Configure an AtmosphereFramework object.Umap(java.lang.String path, java.util.Map<java.lang.String,U> handlers)Mape the request to its associated endpoint.Umap(AtmosphereRequest req, java.util.Map<java.lang.String,U> handlers)Mape the request to its associated endpoint.protected Umatch(java.lang.String path, java.util.Map<java.lang.String,U> handlers)
-
-
-
Method Detail
-
computePath
public java.lang.String computePath(AtmosphereRequest req)
-
configure
public void configure(AtmosphereConfig config)
Description copied from interface:AtmosphereConfigAwareConfigure an AtmosphereFramework object.- Specified by:
configurein interfaceAtmosphereConfigAware- Parameters:
config-AtmosphereConfig
-
map
public U map(AtmosphereRequest req, java.util.Map<java.lang.String,U> handlers)
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
public U map(java.lang.String path, java.util.Map<java.lang.String,U> handlers)
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
-
-