com.sap.mdm.session
Class ServerSessionContext

java.lang.Object
  extended bycom.sap.mdm.session.AbstractSessionContext
      extended bycom.sap.mdm.session.ServerSessionContext
All Implemented Interfaces:
MdmSessionContext, Serializable
Direct Known Subclasses:
RepositorySessionContext

public class ServerSessionContext
extends AbstractSessionContext

This class represents the context of the server session. The context includes: server name and server user name.

See Also:
RepositorySessionContext, UserSessionContext, Serialized Form

Field Summary
static String DEFAUL_USER_NAME
          Deprecated. use DEFAULT_USER_NAME instead
static String DEFAULT_USER_NAME
           
 
Constructor Summary
ServerSessionContext()
          C'tor
ServerSessionContext(ServerSessionContext ctx)
          Copy constructor
ServerSessionContext(String serverName)
          Constructor
ServerSessionContext(String serverName, String serverUserName)
          Constructor
 
Method Summary
 boolean equals(Object obj)
           
 String getFullyQualifiedServerName()
          Returns the fully qualified MDM server name that consists of the fully qualified host name and port delimited by ':'
 String getServerName()
          Returns the name of MDM server
 String getServerUserName()
          Returns the user name of MDM server
 int hashCode()
           
 void setServerUserName(String serverUserName)
          Sets the user name of MDM server
 void setSocketFactory(MdmSecureSocketFactory socketFactory)
          Sets MdmSocketFactory that will be used for creating a secure socket
 String toString()
           
 
Methods inherited from class com.sap.mdm.session.AbstractSessionContext
getApplicationId, getApplicationName, getConnectionType, getContextIdentifier, getSocketFactory, isTrustedConnection, isWebServiceContext, readFromString, setApplicationId, setApplicationName, setConnectionType, setContextIdentifier, setHashCode, setTrustedConnection, writeToString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_USER_NAME

public static final String DEFAULT_USER_NAME
See Also:
Constant Field Values

DEFAUL_USER_NAME

public static final String DEFAUL_USER_NAME
Deprecated. use DEFAULT_USER_NAME instead

See Also:
Constant Field Values
Constructor Detail

ServerSessionContext

public ServerSessionContext(String serverName,
                            String serverUserName)
Constructor


ServerSessionContext

public ServerSessionContext(String serverName)
Constructor


ServerSessionContext

public ServerSessionContext(ServerSessionContext ctx)
Copy constructor


ServerSessionContext

public ServerSessionContext()
C'tor

Method Detail

getServerName

public String getServerName()
Description copied from interface: MdmSessionContext
Returns the name of MDM server

Returns:
the MDM server name

getFullyQualifiedServerName

public String getFullyQualifiedServerName()
Description copied from interface: MdmSessionContext
Returns the fully qualified MDM server name that consists of the fully qualified host name and port delimited by ':'

Returns:
the fully qualified MDM server name

setSocketFactory

public void setSocketFactory(MdmSecureSocketFactory socketFactory)
Description copied from interface: MdmSessionContext
Sets MdmSocketFactory that will be used for creating a secure socket

Specified by:
setSocketFactory in interface MdmSessionContext
Overrides:
setSocketFactory in class AbstractSessionContext

getServerUserName

public String getServerUserName()
Returns the user name of MDM server

Returns:
the user name of MDM server

setServerUserName

public void setServerUserName(String serverUserName)
Sets the user name of MDM server


toString

public String toString()
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractSessionContext

equals

public boolean equals(Object obj)
Overrides:
equals in class AbstractSessionContext


Copyright 2004-2007 by SAP AG. All Rights Reserved.

SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies (SAP Group) for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.