org.outerj.daisy.httpconnector
Interface HttpConnector
public interface HttpConnector
Method Summary |
void |
addHandler(org.mortbay.http.HttpHandler handler)
Adds a new handler to the HTTP context. |
void |
removeHandler(org.mortbay.http.HttpHandler handler)
|
addHandler
void addHandler(org.mortbay.http.HttpHandler handler)
throws java.lang.Exception
- Adds a new handler to the HTTP context. This allows other components
in the repository server to expose functionality on the same port
and using the same HTTP server as the repository HTTPConnector.
Some remarks:
- The handler is added after currently registered handlers, so
cannot 'catch' URL processed by handler coming before it.
- The handler is added to the same context as the built-in
handlers, thus falls under the same security constraints.
- Parameters:
handler
- a Jetty HttpHandler
- Throws:
java.lang.Exception
removeHandler
void removeHandler(org.mortbay.http.HttpHandler handler)
Copyright © -2012 . All Rights Reserved.