Class ExternalEnv

java.lang.Object
com.perforce.p4java.impl.mapbased.rpc.ExternalEnv
All Implemented Interfaces:
RpcMarshalable

public class ExternalEnv extends Object implements 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 Details

  • Method Details

    • marshal

      public void marshal(ByteBuffer buf) throws BufferOverflowException
      Description copied from interface: RpcMarshalable
      Marshal the associated object onto the passed-in ByteBuffer.
      Specified by:
      marshal in interface RpcMarshalable
      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

      public String toString()
      Overrides:
      toString in class Object
    • getProgName

      public String getProgName()
    • setProgName

      public void setProgName(String progName)
    • getVersion

      public String getVersion()
    • setVersion

      public void setVersion(String version)
    • getClient

      public String getClient()
    • setClient

      public void setClient(String client)
    • getCwd

      public String getCwd()
    • setCwd

      public void setCwd(String cwd)
    • getHost

      public String getHost()
    • setHost

      public void setHost(String host)
    • getPort

      public String getPort()
    • setPort

      public void setPort(String port)
    • getLanguage

      public String getLanguage()
    • setLanguage

      public void setLanguage(String language)
    • getOs

      public String getOs()
    • setOs

      public void setOs(String os)
    • getUser

      public String getUser()
    • setUser

      public void setUser(String user)
    • isUnicode

      public boolean isUnicode()
    • setUnicode

      public void setUnicode(boolean unicode)
    • getCurrentCharset

      public Charset getCurrentCharset()
    • setCurrentCharset

      public void setCurrentCharset(Charset currentCharset)