public class ServerContext
extends java.lang.Object
Server
.Modifier and Type | Class and Description |
---|---|
static interface |
ServerContext.ServerContextHandler
Represents a handler for a
ServerContext . |
static class |
ServerContext.ServerContextResult
Represents a result of a handle event in the
Server . |
Constructor and Description |
---|
ServerContext(java.lang.String route,
ACIS system,
ServerContext.ServerContextHandler handler,
boolean auth)
Constructor for a ServerContext.
|
Modifier and Type | Method and Description |
---|---|
ServerContext.ServerContextHandler |
getContextHandler()
Returns the
ServerContext.ServerContextHandler this context uses. |
java.lang.String |
getRoute()
Returns the route under which the context is accessible.
|
ACIS |
getSystem()
Returns the used
ACIS system. |
boolean |
requiresAuthentication()
Returns whether authentication is required to access this context.
|
public ServerContext(java.lang.String route, ACIS system, ServerContext.ServerContextHandler handler, boolean auth)
route
- The route under which the context is accessible.system
- The ACIS
system to use.handler
- The ServerContextHandler interface.auth
- Whether an authentication is required to access this context.public java.lang.String getRoute()
public ServerContext.ServerContextHandler getContextHandler()
ServerContext.ServerContextHandler
this context uses.ServerContext.ServerContextHandler
.public boolean requiresAuthentication()
true
when authentication is required, else false
.