public class HttpListenerRegistry extends java.lang.Object implements HttpListener
Constructor and Description |
---|
HttpListenerRegistry() |
Modifier and Type | Method and Description |
---|---|
void |
addHttpFilter(HttpListener listener,
java.lang.String regex) |
void |
addHttpListener(HttpListener listener,
java.lang.String regex) |
void |
onMessage(HttpRequest request,
HttpResponse response) |
java.util.Collection<HttpListener> |
removeHttpFilter(java.lang.String regex) |
HttpListener |
removeHttpListener(java.lang.String regex) |
void |
setOrigin(FilterListener origin) |
public void onMessage(HttpRequest request, HttpResponse response) throws java.lang.Exception
onMessage
in interface HttpListener
java.lang.Exception
public void addHttpListener(HttpListener listener, java.lang.String regex)
public HttpListener removeHttpListener(java.lang.String regex)
public void addHttpFilter(HttpListener listener, java.lang.String regex)
public java.util.Collection<HttpListener> removeHttpFilter(java.lang.String regex)
public void setOrigin(FilterListener origin)