public abstract class LegacyWebServiceHandler extends LegacyServiceHandler
org.eclipse.jetty.server.handler.AbstractHandler.ErrorDispatchHandlerorg.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListenerorg.eclipse.jetty.util.component.LifeCycle.Listener| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DELETE
Constant identifying the "delete" mode.
|
(package private) static java.lang.String |
EXTERNAL
Constant identifying the "external" mode.
|
static java.lang.String |
JAVA
Constant identifying the "Java" mode.
|
static java.lang.String |
PERSISTENT
Constant identifying the "persistent" mode.
|
protected java.util.Map<ServiceKey,RestService> |
services
The exposed REST services.
|
static java.lang.String |
SINGLE_RUN
Constant identifying the "single-run" mode.
|
static java.lang.String |
SINGLETON
Constant identifying the "singleton" mode.
|
basePath| Constructor and Description |
|---|
LegacyWebServiceHandler(java.lang.String type,
java.lang.String basePath)
Initialize this handler with the given base path.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract ServiceKey |
buildServiceKey(LegacyService ls)
Build a
ServiceKey for the specified legacy service. |
protected RestService |
registerService(LegacyService ls,
java.lang.Class<? extends _BaseObject_> cls,
LegacyService mls,
java.lang.reflect.Method m)
Register a legacy service associated with a legacy OO class method.
|
protected RestService |
registerService(LegacyService ls,
java.lang.String pname,
LegacyService iels,
InternalEntry ie,
boolean function)
Register a legacy service associated with an internal entry for an external program.
|
protected RestService |
registerService(LegacyService ls,
java.lang.String pname,
java.lang.reflect.Method m)
Register a legacy service associated with a legacy external program.
|
authorize, getBasePath, getPaths, getTimeout, getType, handle, handle, handle, initializeHandler, postHandle, readBody, resolveBasePath, terminateWorkers, useAuthorizationdestroy, doError, doStart, doStop, getServer, setServeraddBean, addBean, addEventListener, addManaged, contains, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpObjects, dumpStdErr, dumpThis, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeansaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, start, stop, stopstatic final java.lang.String EXTERNAL
public static final java.lang.String JAVA
public static final java.lang.String SINGLETON
public static final java.lang.String SINGLE_RUN
public static final java.lang.String PERSISTENT
public static final java.lang.String DELETE
protected java.util.Map<ServiceKey,RestService> services
public LegacyWebServiceHandler(java.lang.String type,
java.lang.String basePath)
type - The service type, also name of node to get the configuration from the directory.basePath - The implicit basepath.protected abstract ServiceKey buildServiceKey(LegacyService ls)
ServiceKey for the specified legacy service.ls - The legacy service annotation.protected RestService registerService(LegacyService ls, java.lang.Class<? extends _BaseObject_> cls, LegacyService mls, java.lang.reflect.Method m)
ls - The annotation describing the service, at the legacy class.cls - The BaseObject sub-class implementing this
service.mls - The annotation describing the service, at the legacy method.m - The target operation.protected RestService registerService(LegacyService ls, java.lang.String pname, java.lang.reflect.Method m)
ls - The annotation describing the service.pname - The legacy program name.m - The target Java method for this service.protected RestService registerService(LegacyService ls, java.lang.String pname, LegacyService iels, InternalEntry ie, boolean function)
ls - The annotation describing the service, at the external program.pname - The legacy program name.iels - The annotation describing the service, at the internal entry.ie - The target internal entry for this service.function - Flag identifying if the internal entry is a function.