com.sun.media.jsdt.template
Class templateClient
java.lang.Object
|
+--com.sun.media.jsdt.impl.JSDTObject
|
+--com.sun.media.jsdt.impl.ClientImpl
|
+--com.sun.media.jsdt.template.templateClient
- public class templateClient
- extends ClientImpl
- implements com.sun.media.jsdt.event.ClientListener, com.sun.media.jsdt.template.templateDebugFlags
JSDT implementation specific Client class.
- Version:
- 1.5 - 7th January 1999
- Author:
- Rich Burridge
- See Also:
- Serialized Form
Fields inherited from class com.sun.media.jsdt.impl.JSDTObject |
giveTime,
httpTunnelPort,
maxQueueSize,
maxThreadPoolSize,
pingPeriod,
registryAddress,
registryPort,
registryTime,
showMessage,
showStack,
socketFactoryClass,
SSLCipher,
timeoutPeriod,
TTL,
versionString |
Constructor Summary |
templateClient()
templateClient the default constructor for the templateClient
class. |
Method Summary |
void |
_createProxy(NamingProxy namingProxy,
java.lang.String name,
java.lang.String host,
int port)
_createProxy create a proxy-side connection for this Client. |
void |
_createServer(java.lang.String name,
java.lang.String url,
int port)
_createServer create a server-side connection for this Client. |
java.lang.Object |
authenticate(com.sun.media.jsdt.AuthenticationInfo info)
|
void |
byteArrayExpelled(com.sun.media.jsdt.event.ClientEvent event)
|
void |
byteArrayInvited(com.sun.media.jsdt.event.ClientEvent event)
|
void |
channelExpelled(com.sun.media.jsdt.event.ClientEvent event)
|
void |
channelInvited(com.sun.media.jsdt.event.ClientEvent event)
|
java.lang.String |
getName()
|
void |
sessionExpelled(com.sun.media.jsdt.event.ClientEvent event)
|
void |
sessionInvited(com.sun.media.jsdt.event.ClientEvent event)
|
void |
tokenExpelled(com.sun.media.jsdt.event.ClientEvent event)
|
void |
tokenGiven(com.sun.media.jsdt.event.ClientEvent event)
invoked when a Client has been given a Token. |
void |
tokenInvited(com.sun.media.jsdt.event.ClientEvent event)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
templateClient
public templateClient()
-
templateClient the default constructor for the templateClient
class. Note that the Client name is supplied by _createProxy or
_createServer.
authenticate
public final java.lang.Object authenticate(com.sun.media.jsdt.AuthenticationInfo info)
- Overrides:
- authenticate in class ClientImpl
getName
public final java.lang.String getName()
- Overrides:
- getName in class ClientImpl
byteArrayInvited
public final void byteArrayInvited(com.sun.media.jsdt.event.ClientEvent event)
- Specified by:
- byteArrayInvited in interface com.sun.media.jsdt.event.ClientListener
byteArrayExpelled
public final void byteArrayExpelled(com.sun.media.jsdt.event.ClientEvent event)
- Specified by:
- byteArrayExpelled in interface com.sun.media.jsdt.event.ClientListener
channelInvited
public final void channelInvited(com.sun.media.jsdt.event.ClientEvent event)
- Specified by:
- channelInvited in interface com.sun.media.jsdt.event.ClientListener
channelExpelled
public final void channelExpelled(com.sun.media.jsdt.event.ClientEvent event)
- Specified by:
- channelExpelled in interface com.sun.media.jsdt.event.ClientListener
sessionInvited
public final void sessionInvited(com.sun.media.jsdt.event.ClientEvent event)
- Specified by:
- sessionInvited in interface com.sun.media.jsdt.event.ClientListener
sessionExpelled
public final void sessionExpelled(com.sun.media.jsdt.event.ClientEvent event)
- Specified by:
- sessionExpelled in interface com.sun.media.jsdt.event.ClientListener
tokenInvited
public final void tokenInvited(com.sun.media.jsdt.event.ClientEvent event)
- Specified by:
- tokenInvited in interface com.sun.media.jsdt.event.ClientListener
tokenExpelled
public final void tokenExpelled(com.sun.media.jsdt.event.ClientEvent event)
- Specified by:
- tokenExpelled in interface com.sun.media.jsdt.event.ClientListener
tokenGiven
public final void tokenGiven(com.sun.media.jsdt.event.ClientEvent event)
-
invoked when a Client has been given a Token.
- Specified by:
- tokenGiven in interface com.sun.media.jsdt.event.ClientListener
- Parameters:
event
- the Client event containing more information.
_createProxy
public final void _createProxy(NamingProxy namingProxy,
java.lang.String name,
java.lang.String host,
int port)
throws com.sun.media.jsdt.NoSuchHostException
-
_createProxy create a proxy-side connection for this Client.
- Parameters:
namingProxy
- the naming proxy that created this client.name
- the name of the Client being constructed.host
- the host of the server-side connection.port
- the port number to use for the connection.- Throws:
- com.sun.media.jsdt.NoSuchHostException - if the host given doesn't exist.
_createServer
public final void _createServer(java.lang.String name,
java.lang.String url,
int port)
throws com.sun.media.jsdt.PortInUseException
-
_createServer create a server-side connection for this Client.
- Parameters:
name
- the name of the Client being constructed.url
- the url associated with this Client.port
- the port number to use for the connection.- Throws:
- com.sun.media.jsdt.PortInUseException - if this port is being used by another
application.