public abstract class ServerHandler
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
adminKey
The server admin key
|
protected java.lang.String |
localURI
Local ip address - not currently used
|
protected java.lang.String |
serverPassword
The server password
|
| Constructor and Description |
|---|
ServerHandler(java.lang.String theServerPassword,
java.lang.String theAdminKey)
Create a new instance of ServerHandler.
|
| Modifier and Type | Method and Description |
|---|---|
abstract HttpEntity |
handle(HttpEntity request)
Handle the HTTP request.
|
protected boolean |
isBlocking()
Return true if this handler is blocking, or requires a method reply.
|
protected java.lang.String serverPassword
protected java.lang.String adminKey
protected java.lang.String localURI
public ServerHandler(java.lang.String theServerPassword,
java.lang.String theAdminKey)
throws java.lang.Exception
theServerPassword - the server password.theAdminKey - the server admin key.java.lang.Exception - any error.public abstract HttpEntity handle(HttpEntity request) throws java.lang.Exception
request - the HTTP request.java.lang.Exception - any error.protected boolean isBlocking()