org.ssonet.net
Class SSONETContextProvider

java.lang.Object
  |
  +--org.ssonet.net.SSONETContextProvider

public class SSONETContextProvider
extends java.lang.Object

A bit a dirty trick, to bind a SSONETClientSocketFactory, which was created at the Server side, to a clients SSONETContextFactory.


Field Summary
protected static org.ssonet.net.SSONETContextFactory contextFactory
          The SSONETContextFactory
 
Constructor Summary
SSONETContextProvider()
           
 
Method Summary
static org.ssonet.net.SSONETContext createContext()
          Creates a SSONETContext by using the SSONETContextFactory
static org.ssonet.net.SSONETContextFactory getContextFactory()
          returns the SSONETContextFactory provided by this class.
static void setContextFactory(org.ssonet.net.SSONETContextFactory cf)
          Sets a SSONETContextFactory for use in a SSONETClientSocketFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contextFactory

protected static org.ssonet.net.SSONETContextFactory contextFactory
The SSONETContextFactory

Constructor Detail

SSONETContextProvider

public SSONETContextProvider()
Method Detail

setContextFactory

public static void setContextFactory(org.ssonet.net.SSONETContextFactory cf)
Sets a SSONETContextFactory for use in a SSONETClientSocketFactory

Parameters:
cf - the SSONETContextFactory to set

getContextFactory

public static org.ssonet.net.SSONETContextFactory getContextFactory()
returns the SSONETContextFactory provided by this class.

Returns:
the SSONETContextFactory

createContext

public static org.ssonet.net.SSONETContext createContext()
Creates a SSONETContext by using the SSONETContextFactory

Returns:
a SSONTEContext created by the SSONETContextFactory


Copyright © 2003 DRIM Team. All Rights Reserved.