public class SimpleRouter
extends java.lang.Object
Constructor and Description |
---|
SimpleRouter() |
Modifier and Type | Method and Description |
---|---|
void |
addRoute(Route route) |
void |
addRoute(java.lang.String from,
java.lang.String to) |
void |
cleanUp() |
javax.management.openmbean.TabularData |
getActiveRoutes() |
java.lang.String |
getPrefix() |
boolean |
hasPrefix() |
void |
JMXOff() |
void |
JMXOn(java.lang.String name) |
SimpleRouter |
readConfiguration(java.net.URL url) |
void |
removeRoute(java.lang.String from,
java.lang.String to) |
java.lang.String |
route(java.lang.String uri) |
void |
setPrefix(java.lang.String prefix) |
public SimpleRouter readConfiguration(java.net.URL url)
public java.lang.String route(java.lang.String uri) throws java.io.IOException, ServletException
java.io.IOException
ServletException
public void addRoute(Route route)
public void cleanUp()
public void setPrefix(java.lang.String prefix)
public void JMXOn(java.lang.String name)
public void JMXOff()
@ManagedAttribute public javax.management.openmbean.TabularData getActiveRoutes()
@ManagedOperation public void addRoute(java.lang.String from, java.lang.String to)
@ManagedOperation public void removeRoute(java.lang.String from, java.lang.String to)
public boolean hasPrefix()
public java.lang.String getPrefix()