|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.media.jsdt.impl.JSDTObject | +--com.sun.media.jsdt.URLString
JSDT URL String parsing class. A JSDT URL is of the form:
jsdt://<host>:<port>/<connection type>/<object type>/<object name> whereStatic convenience methods are provided to create Session and Client URLStringsis the connection (or implementation) type (eg. "socket", "lrmp" or "rmi"), and where valid object types are "Session" and "Client". So for example: bind("jsdt://stard:3355/socket/Session/chatSession", chatSession); bind("jsdt://stard:4386/socket/Client/fredClient", fredClient);
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 | |
URLString(java.lang.String url)
URLString is a constructor for the URLString class. |
Method Summary | |
static URLString |
createClientURL(java.lang.String hostName,
int port,
java.lang.String connectionType,
java.lang.String clientName)
createClientURL is a class method that will create a JSDT Client URL given it's component parts. |
static URLString |
createSessionURL(java.lang.String hostName,
int port,
java.lang.String connectionType,
java.lang.String sessionName)
createSessionURL is a class method that will create a JSDT Session URL given it's component parts. |
java.lang.String |
getConnectionType()
getConnectionType get the connection type of this Session/Client. |
java.lang.String |
getHostAddress()
getHostAddress get the host IP address for the server for this object. |
java.lang.String |
getHostName()
getHostName get the host name for the server for this object. |
java.lang.String |
getObjectName()
getObjectName get the name of this object. |
java.lang.String |
getObjectType()
getObjectType get the type of this object (Session or Client). |
int |
getPort()
getPort get the port number being used by the server for this object. |
java.lang.String |
getProtocol()
getProtocol get the protocol portion of the given URL String. |
boolean |
isValid()
isValid get the validity of this URLString. |
java.lang.String |
toString()
toString print this URLString object as a JSDT String URL. |
Methods inherited from class com.sun.media.jsdt.impl.JSDTObject |
error,
setConnectionType |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public URLString(java.lang.String url)
url
- the JSDT URL string to be broken down.Method Detail |
public static URLString createSessionURL(java.lang.String hostName, int port, java.lang.String connectionType, java.lang.String sessionName)
createSession
methods in the SessionFactory class.hostName
- the host name for the server for this Session.port
- the port number the server is running on.connectionType
- the connection (implementation) type of
this Session.sessionName
- the name of this Session.public static URLString createClientURL(java.lang.String hostName, int port, java.lang.String connectionType, java.lang.String clientName)
createClient
method in the ClientFactory class.hostName
- the host name for the server for this Client.port
- the port number the server is running on.connectionType
- the connection (implementation) type of
this Client.clientName
- the name of this Client.public java.lang.String getHostAddress()
public java.lang.String getHostName()
public java.lang.String getProtocol()
public int getPort()
public java.lang.String getConnectionType()
public java.lang.String getObjectType()
public java.lang.String getObjectName()
public boolean isValid()
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |