edu.utah.janosvm.kit.comm.jsi
Class JSIHandlerContext
java.lang.Object
|
+--edu.utah.janosvm.kit.comm.jsi.JSIHandlerContext
- public final class JSIHandlerContext
- extends java.lang.Object
A context used for processing regular and interim messages. An interim
message is one that is sent by the handler in the course of processing a
request.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait, wait0 |
DEFAULT_ROOT_HANDLERS
private static final JSIHandlerRoot DEFAULT_ROOT_HANDLERS
- The default set of JSIHandlers.
rootHandlers
private final JSIHandlerRoot rootHandlers
- The set of root handlers used to process messages.
jc
private final JSIChannel jc
- The channel used to send interim messages.
JSIHandlerContext
public JSIHandlerContext(JSIHandlerRoot rootHandlers,
JSIChannel jc)
- Construct a context with the given values.
- Parameters:
rootHandlers
- The set of root handlers.jc
- A connected channel.
JSIHandlerContext
public JSIHandlerContext(JSIChannel jc)
- Construct a context with the given values and the default set of root
handlers.
- Parameters:
jc
- A connected channel.
getDefaultRootHandlers
public static JSIHandlerRoot getDefaultRootHandlers()
- Returns:
- The default set of root handlers.
addDefaultRootHandler
public static void addDefaultRootHandler(java.lang.String name,
JSIHandler handler)
- Add a JSIHandler to the set of default roots.
- Parameters:
name
- The name of the root handler.handler
- The handler itself.
getRootHandlers
public JSIHandlerRoot getRootHandlers()
- Returns:
- The set of root handlers.
getChannel
public JSIChannel getChannel()
- Returns:
- The channel used to send interim messages.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
This documentation is Copyright (C) 2000-2003 The University of Utah. All Rights Reserved. See the documentation license for distribution terms and restrictions.
Documentation, software, and mailing lists for the JanosVM can be found at the Janos Project web page: http://www.cs.utah.edu/flux/janos/
Generated on Feb 13, 2003