public class ResourceRegistry extends Object
ResourceHandler
.Constructor and Description |
---|
ResourceRegistry() |
Modifier and Type | Method and Description |
---|---|
void |
register(ResourceHandler handler)
Register a new resource handler.
|
CoapMessage |
respond(CoapMessage request,
IoSession session)
Response to a request : delegate it to the correct handler for the requested path.
|
public void register(ResourceHandler handler)
handler
- the halder to register.public CoapMessage respond(CoapMessage request, IoSession session)
request
- the request ot serveCopyright © 2009–2013 Apache MINA Project. All rights reserved.