java.lang.Object
swim.kernel.KernelProxy
swim.service.web.UiRouter
- All Implemented Interfaces:
IpInterface
,Kernel
,KernelBinding
,KernelContext
,Log
SwimOS kernel module for routing HTTP requests for the bundled UI.
-
Field Summary
Fields inherited from class swim.kernel.KernelProxy
kernelBinding, kernelContext, STARTED, status, STATUS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Logs a debug-level message.void
Logs an error-level message.void
Logs an fail-level message.static UiRouter
void
Logs an info-level message.final double
Returns the relative priority of thisKernel
implementation.routeRequest
(WebRequest request) void
Logs a trace-level message.void
Logs a warn-level message.Methods inherited from class swim.kernel.KernelProxy
bindTcp, bindTls, connectTcp, connectTls, createAgentFactory, createAgentFactory, createAgentFactory, createAgentFactory, createAgentRoute, createAuthenticator, createEdge, createHost, createHost, createLane, createLane, createLog, createLog, createMesh, createMesh, createNode, createNode, createPart, createPart, createPlaneFactory, createPlaneFactory, createPolicy, createPolicy, createSchedule, createServiceFactory, createStage, createStage, createStore, createStore, defineAgent, defineAuthenticator, defineHost, defineLane, defineLog, defineMesh, defineNode, definePart, definePlane, definePolicy, defineSchedule, defineService, defineSpace, defineStage, defineStore, didStart, didStop, getHostDef, getLaneDef, getMeshDef, getNodeDef, getPartDef, getService, getSpace, injectAuthenticator, injectEdge, injectHost, injectKernel, injectLane, injectLog, injectMesh, injectNode, injectPart, injectPlane, injectPolicy, injectSchedule, injectService, injectStage, injectStore, ipSettings, isStarted, kernelBinding, kernelContext, kernelWrapper, modules, openAgents, openLanes, openMetaDownlink, openMetaEdge, openMetaHost, openMetaLane, openMetaMesh, openMetaNode, openMetaPart, openMetaUplink, openService, openSpace, reportDown, run, setKernelBinding, setKernelContext, stage, start, station, stop, unwrapKernel, willStart, willStop
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface swim.io.IpInterface
bindTcp, bindTcp, bindTcp, bindTls, bindTls, bindTls, connectTcp, connectTcp, connectTcp, connectTcp, connectTcp, connectTcp, connectTcp, connectTls, connectTls, connectTls, connectTls, connectTls, connectTls, connectTls
Methods inherited from interface swim.kernel.Kernel
openService, openService
-
Constructor Details
-
UiRouter
public UiRouter(double kernelPriority) -
UiRouter
public UiRouter()
-
-
Method Details
-
kernelPriority
public final double kernelPriority()Description copied from interface:Kernel
Returns the relative priority of thisKernel
implementation. Kernel implementations with greater priority inject into kernel stacks before implementations with lower priority.- Specified by:
kernelPriority
in interfaceKernel
- Specified by:
kernelPriority
in classKernelProxy
-
routeRequest
- Specified by:
routeRequest
in interfaceKernelContext
- Overrides:
routeRequest
in classKernelProxy
-
trace
Description copied from interface:Log
Logs a trace-level message.- Specified by:
trace
in interfaceLog
- Overrides:
trace
in classKernelProxy
-
debug
Description copied from interface:Log
Logs a debug-level message.- Specified by:
debug
in interfaceLog
- Overrides:
debug
in classKernelProxy
-
info
Description copied from interface:Log
Logs an info-level message.- Specified by:
info
in interfaceLog
- Overrides:
info
in classKernelProxy
-
warn
Description copied from interface:Log
Logs a warn-level message.- Specified by:
warn
in interfaceLog
- Overrides:
warn
in classKernelProxy
-
error
Description copied from interface:Log
Logs an error-level message.- Specified by:
error
in interfaceLog
- Overrides:
error
in classKernelProxy
-
fail
Description copied from interface:Log
Logs an fail-level message.- Specified by:
fail
in interfaceLog
- Overrides:
fail
in classKernelProxy
-
fromValue
-