Package jadex.extension.rs.publish
Interface IPathHandler
-
- All Superinterfaces:
IRequestHandler
- All Known Implementing Classes:
PathHandler
,PathHandler2
public interface IPathHandler extends IRequestHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addSubhandler(java.lang.String vhost, java.lang.String path, IRequestHandler subhandler)
Adds a new subhandler.boolean
containsSubhandlerForExactUri(java.lang.String vhost, java.lang.String path)
Tests if a handler for the exact URI is currently published.java.util.Map<Tuple2<java.lang.String,java.lang.String>,Tuple2<java.lang.String,IRequestHandler>>
getSubhandlers()
Get the subhandlers.void
removeSubhandler(java.lang.String vhost, java.lang.String path)
Remove a subhandler.-
Methods inherited from interface jadex.extension.rs.publish.IRequestHandler
handleRequest
-
-
-
-
Method Detail
-
addSubhandler
void addSubhandler(java.lang.String vhost, java.lang.String path, IRequestHandler subhandler)
Adds a new subhandler.- Parameters:
vhost
- Virtual host specification.path
- Path being handled.subhandler
- The subhandler.
-
removeSubhandler
void removeSubhandler(java.lang.String vhost, java.lang.String path)
Remove a subhandler.- Parameters:
vhost
- Virtual host specification.path
- Path being handled.
-
containsSubhandlerForExactUri
boolean containsSubhandlerForExactUri(java.lang.String vhost, java.lang.String path)
Tests if a handler for the exact URI is currently published.- Parameters:
vhost
- Virtual host specification.path
- Path being handled.- Returns:
- True, if a handler was found.
-
getSubhandlers
java.util.Map<Tuple2<java.lang.String,java.lang.String>,Tuple2<java.lang.String,IRequestHandler>> getSubhandlers()
Get the subhandlers.- Returns:
- The subhandlers
-
-