public abstract class WorkContext
extends java.lang.Object
构造器和说明 |
---|
WorkContext() |
限定符和类型 | 方法和说明 |
---|---|
static WorkspaceConnector |
getConnector() |
static Workspace |
getCurrent() |
static WorkspaceFactory |
getFactory() |
static java.lang.String |
getVersion() |
static WorkResource |
getWorkResource() |
static byte[] |
handleMessage(byte[] request)
将消息交给workspace模块处理,主要用于http的连接方式
|
static void |
setConnector(WorkspaceConnector connector) |
static void |
setFactory(WorkspaceFactory factory) |
static void |
setMessageHandler(WorkspaceMessageHandler listener) |
static void |
setVersion(java.lang.String version) |
static void |
setWorkResource(WorkResource resource) |
static void |
switchTo(Workspace workspace) |
static void |
switchTo(Workspace workspace,
WorkContextCallback callback) |
public static Workspace getCurrent()
public static WorkspaceFactory getFactory()
public static WorkspaceConnector getConnector()
public static WorkResource getWorkResource()
public static void switchTo(Workspace workspace)
public static void switchTo(Workspace workspace, WorkContextCallback callback)
public static void setFactory(WorkspaceFactory factory)
public static void setConnector(WorkspaceConnector connector)
public static void setWorkResource(WorkResource resource)
public static void setMessageHandler(WorkspaceMessageHandler listener)
public static byte[] handleMessage(byte[] request)
public static java.lang.String getVersion()
public static void setVersion(java.lang.String version)