|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.starbase.starteam.ClientContext
The ClientContext class contains the nescessary information in order to run the SDK on one machine for a client running on a different machine. This is useful, for example, when running an SDK application within a Web server for a remote browser based client. The information in the ClientContext includes a unique client GUID identitfier, the hostname of the client machine, the client's end-of-line convention, whether or not the client treats file names as case sensitive or not and the string used to delimit directory names within an absolute file path. The Platform class has methods for returning those values on the host running the SDK.
Platform.getWorkStationID(),
Platform.getMachineName(),
Platform.getEOL(),
Platform.caseSensitiveFileNames(),
Platform.getFilePathDelim()| Field Summary | |
static java.lang.String |
EOL_CR
Carriage-return end-of-line sequence (i.e., "\r"). |
static java.lang.String |
EOL_CRLF
Carriage-return + Line-feed end-of-line sequence (i.e., "\r\n"). |
static java.lang.String |
EOL_LF
Line-feed end-of-line sequence (i.e., "\n"). |
static java.lang.String |
EOL_MAC
End of line sequence commonly used on the MacIntosh. |
static java.lang.String |
EOL_UNIX
End of line sequence commonly used on Unix/Linux/Solaris. |
static java.lang.String |
EOL_WINDOWS
End of line sequence commonly used on Windows. |
| Constructor Summary | |
ClientContext()
Creates a default client context based on propeties of the machine actually running the code. |
|
ClientContext(GUID workStationID)
Creates a default client context based on propeties of the machine actually running the code but using the specified workstation ID. |
|
ClientContext(GUID workStationID,
java.lang.String hostname,
java.lang.String eol,
boolean caseSensitive,
java.lang.String filePathDelim,
DirectoryOverrides overrides)
Creates a new client context based on the specified parameters. |
|
| Method Summary | |
boolean |
equals(java.lang.Object source)
returns true if this object instance is equal to the source |
boolean |
getCaseSensitiveFileNames()
Returns true if the client treats file names as case sensitive. |
DirectoryOverrides |
getDirectoryOverrides()
Returns the directory override information for this client context. |
java.lang.String |
getEOL()
Returns the client machine's end-of-line convention. |
java.lang.String |
getFilePathDelimiter()
Returns the string used to delimit directories in a file path. |
java.lang.String |
getHostName()
Returns the client machine's host name. |
GUID |
getWorkStationID()
Returns the workstation GUID identifying the client. |
int |
hashCode()
returns a unique hash for all instances of this type |
void |
setCaseSensitiveFileNames(boolean caseSensitive)
Sets whether or not the client treats file names as case sensitive. |
void |
setDirectoryOverrides(DirectoryOverrides overrides)
Sets the directory override information for this client context. |
void |
setEOL(java.lang.String eol)
Sets the end of line sequence to use for this client context. |
void |
setFilePathDelimiter(java.lang.String delim)
Sets the file path delimiter to use. |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String EOL_CRLF
ClientContext.getEOL(),
ClientContext.setEOL(java.lang.String),
Constant Field Valuespublic static final java.lang.String EOL_LF
ClientContext.getEOL(),
ClientContext.setEOL(java.lang.String),
Constant Field Valuespublic static final java.lang.String EOL_CR
ClientContext.getEOL(),
ClientContext.setEOL(java.lang.String),
Constant Field Valuespublic static final java.lang.String EOL_WINDOWS
ClientContext.EOL_CRLF,
Constant Field Valuespublic static final java.lang.String EOL_UNIX
ClientContext.EOL_LF,
Constant Field Valuespublic static final java.lang.String EOL_MAC
ClientContext.EOL_CR,
Constant Field Values| Constructor Detail |
public ClientContext()
public ClientContext(GUID workStationID)
workStationID - the workstation GUID associated with the client, the value may be null
public ClientContext(GUID workStationID,
java.lang.String hostname,
java.lang.String eol,
boolean caseSensitive,
java.lang.String filePathDelim,
DirectoryOverrides overrides)
workStationID - the workstation GUID associated with the client, the value may be nullhostname - the hostname of the machine running the clienteol - the end of line convention for the client platformcaseSensitive - true if the client treats file names as
case sensitivefilePathDelim - the string used to delimit directory names
on a file path. Is "\" on windows and "/" for Unix.| Method Detail |
public GUID getWorkStationID()
public java.lang.String getHostName()
public java.lang.String getEOL()
ClientContext.EOL_CR,
ClientContext.EOL_CRLF,
ClientContext.EOL_LFpublic void setEOL(java.lang.String eol)
eol - the new eol sequence to use.ClientContext.EOL_CR,
ClientContext.EOL_CRLF,
ClientContext.EOL_LFpublic boolean getCaseSensitiveFileNames()
public void setCaseSensitiveFileNames(boolean caseSensitive)
caseSensitive - use true to mean the client treats file names
as case sensitivepublic java.lang.String getFilePathDelimiter()
public void setFilePathDelimiter(java.lang.String delim)
delim - the file path delimiter to usepublic DirectoryOverrides getDirectoryOverrides()
public void setDirectoryOverrides(DirectoryOverrides overrides)
overrides - the new directory override information for this client context.public boolean equals(java.lang.Object source)
equals in class java.lang.Objectsource - Object the source to comapre with
public int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||