|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An object implementing the IHTTPserver interface represents the HTTP server of a ShareMe peer.
A class implementing this interface should also provide a constructor taking a java.lang.Integer variable representing the HTTP port.
Method Summary | |
void |
register(java.lang.String path,
IHTTPServerEntry url)
Register a URL with the HTTP component's database. |
void |
stop()
Stop the HTTPServer thread from running. |
void |
unregister(java.lang.String path)
Unregister a URL from the HTTP component's database. |
Methods inherited from interface java.lang.Runnable |
run |
Method Detail |
public void register(java.lang.String path, IHTTPServerEntry url) throws ShareMeException
path
- the absolute URL path on the server, e.g. /airline/auaurl
- the class implementing the URL's functionality
ShareMeException
- If either path or server entry is null, or a handler
for this path was already registered.public void unregister(java.lang.String path) throws ShareMeException
path
- the absolute URL path on the server, e.g. /airline/aua
ShareMeException
- If path is null or no handler for this path was
registered.public void stop()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |