public class DefaultEndpointMapper<U> extends Object implements EndpointMapper<U>
EndpointMapper
used by the AsynchronousProcessor
and DefaultWebSocketProcessor
Constructor and Description |
---|
DefaultEndpointMapper() |
Modifier and Type | Method and Description |
---|---|
String |
computePath(AtmosphereRequest req) |
void |
configure(AtmosphereConfig config)
Configure an AtmosphereFramework object.
|
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.
|
protected U |
match(String path,
Map<String,U> handlers) |
public String computePath(AtmosphereRequest req)
public void configure(AtmosphereConfig config)
AtmosphereConfigAware
configure
in interface AtmosphereConfigAware
config
- AtmosphereConfig
public U map(AtmosphereRequest req, Map<String,U> handlers)
EndpointMapper
map
in interface EndpointMapper<U>
req
- an AtmosphereRequest
handlers
- a map used for mapping the request to.public U map(String path, Map<String,U> handlers)
EndpointMapper
map
in interface EndpointMapper<U>
path
- a URIhandlers
- a map used for mapping the request to.Copyright © 2016. All rights reserved.