Class ClientContext


  • public class ClientContext
    extends StatelessClientContext
    The client context which the client must supply as an argument to every stateful remote call. Client.getContext() is the preferred way for service clients to obtain a ready-to-use context. It conveys key (but optional) information about the client to the server.
    Since:
    1.0.0
    Version:
    $Id: ClientContext.java 17411 2017-04-28 14:50:38Z colin $
    Author:
    tlerios@marketcetera.com
    • Field Detail

      • sessionId

        private SessionId sessionId
        session ID value
      • username

        private String username
        username that owns the context
    • Constructor Detail

      • ClientContext

        public ClientContext()
    • Method Detail

      • getSessionId

        public SessionId getSessionId()
        Get the sessionId value.
        Returns:
        a SessionId value
      • setSessionId

        public void setSessionId​(SessionId inSessionId)
        Sets the sessionId value.
        Parameters:
        inSessionId - a SessionId value
      • getUsername

        public String getUsername()
        Get the username value.
        Returns:
        a String value
      • setUsername

        public void setUsername​(String inUsername)
        Sets the username value.
        Parameters:
        inUsername - a String value