|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.ClientContext
public final class ClientContext
The ClientContext class contains the necessary 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 identifier, the address 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.getCaseSensitiveFileNames(),
Platform.getFilePathDelimiter()| Nested Class Summary | |
|---|---|
static class |
ClientContext.DirectoryOverrides
A class that can parse a StarTeam.xml file and work with the view and folder overrides it specifies. |
| Constructor Summary | |
|---|---|
ClientContext()
Creates a default client context based on properties of the machine actually running the code. |
|
ClientContext(GUID workStationID)
Creates a default client context based on properties of the machine actually running the code but using the specified workstation ID. |
|
ClientContext(GUID workStationID,
java.lang.String hostname,
int eol,
boolean caseSensitive,
java.lang.String filePathDelim,
ClientContext.DirectoryOverrides overrides)
Creates a new client context based on the specified parameters. |
|
| Method Summary | |
|---|---|
boolean |
getCaseSensitiveFileNames()
Returns true if the client treats file names as case sensitive. |
ClientContext.DirectoryOverrides |
getDirectoryOverrides()
Returns the directory override information for this client context. |
Platform.EOL |
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. |
void |
setCaseSensitiveFileNames(boolean caseSensitive)
Sets whether or not the client treats file names as case sensitive. |
void |
setDirectoryOverrides(ClientContext.DirectoryOverrides overrides)
Sets the directory override information for this client context. |
void |
setEOL(Platform.EOL 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 |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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,
int eol,
boolean caseSensitive,
java.lang.String filePathDelim,
ClientContext.DirectoryOverrides overrides)
workStationID - the workstation GUID associated with the client, the value may
be nullhostname - the address 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.overrides - view and folder .xml entries| Method Detail |
|---|
public GUID getWorkStationID()
public java.lang.String getHostName()
public Platform.EOL getEOL()
public void setEOL(Platform.EOL eol)
eol - the new eol sequence to use.public 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 ClientContext.DirectoryOverrides getDirectoryOverrides()
public void setDirectoryOverrides(ClientContext.DirectoryOverrides overrides)
overrides - the new directory override information for this client
context.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||