Class ExternalEnv
java.lang.Object
com.perforce.p4java.impl.mapbased.rpc.ExternalEnv
- All Implemented Interfaces:
RpcMarshalable
Used as a container for each Perforce RPC call's external (operating
system, calling program, etc.) environment. Serialized as the first part of
most client-side RPC user command calls. Only sent once per user
command dispatch loop (as far as is known).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCwd()getHost()getOs()getPort()getUser()booleanbyte[]marshal()voidmarshal(ByteBuffer buf) Marshal the associated object onto the passed-in ByteBuffer.voidvoidsetCurrentCharset(Charset currentCharset) voidvoidvoidsetLanguage(String language) voidvoidvoidsetProgName(String progName) voidsetUnicode(boolean unicode) voidvoidsetVersion(String version) toString()
-
Constructor Details
-
ExternalEnv
-
-
Method Details
-
marshal
Description copied from interface:RpcMarshalableMarshal the associated object onto the passed-in ByteBuffer.- Specified by:
marshalin interfaceRpcMarshalable- Parameters:
buf- non-null ByteBuffer; should be big enough to take the marshaled object- Throws:
BufferOverflowException- if the passed-in buffer wasn't big enough
-
marshal
public byte[] marshal() -
toString
-
getProgName
-
setProgName
-
getVersion
-
setVersion
-
getClient
-
setClient
-
getCwd
-
setCwd
-
getHost
-
setHost
-
getPort
-
setPort
-
getLanguage
-
setLanguage
-
getOs
-
setOs
-
getUser
-
setUser
-
isUnicode
public boolean isUnicode() -
setUnicode
public void setUnicode(boolean unicode) -
getCurrentCharset
-
setCurrentCharset
-