|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This is a common interface for three implementations: ServerSessionContext, RepositorySessionContext and UserSessionContext. Each implementation class stores context information needed for establishing connection to MDM server and for creating and authentication session of correspondent type.
ServerSessionContext,
RepositorySessionContext,
UserSessionContext| Method Summary | |
String |
getApplicationId()
Deprecated. This method is replaced with getApplicationName() method |
String |
getApplicationName()
Returns unique application name. |
int |
getConnectionType()
Returns the connection type |
String |
getContextIdentifier()
Returns unique context identifier. |
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 |
MdmSecureSocketFactory |
getSocketFactory()
Returns the instance of MdmSocketFactory used for creating a secure socket |
boolean |
isTrustedConnection()
Indicates if connection should be created as trusted connection In this case the user password does not play a role |
void |
readFromString(String contextString)
Initializes context state from the binary string representation of context object. |
void |
setApplicationId(String applicationId)
Deprecated. This method is replaced with setApplicationName(String) method |
void |
setApplicationName(String applicationName)
Sets the unique application Name. |
void |
setConnectionType(int connectionType)
Sets the connection type |
void |
setContextIdentifier(String contextIdentifier)
Sets the unique context identifier (for example, HttpSession ID) This is optional property. |
void |
setSocketFactory(MdmSecureSocketFactory socketFactory)
Sets MdmSocketFactory that will be used for creating a secure socket |
void |
setTrustedConnection(boolean isTrustedConnection)
Sets connection as trusted connection In this case the user password does not play a role |
String |
writeToString()
Creates binary string representation of the context object. |
| Method Detail |
public String getServerName()
public boolean isTrustedConnection()
true if connection should be trusted, false otherwisepublic void setTrustedConnection(boolean isTrustedConnection)
isTrustedConnection - true if connection should be trustedpublic int getConnectionType()
for connection type constantspublic void setConnectionType(int connectionType)
connectionType - the connection typefor connection type constantspublic String getApplicationId()
public String getApplicationName()
SessionManager,
MdmPasswordStoragepublic void setApplicationId(String applicationId)
public void setApplicationName(String applicationName)
applicationName - the unique application nameSessionManager,
MdmPasswordStoragepublic String getContextIdentifier()
SessionManager,
MdmPasswordStoragepublic void setContextIdentifier(String contextIdentifier)
contextIdentifier - the unique context identifierSessionManager,
MdmPasswordStoragepublic MdmSecureSocketFactory getSocketFactory()
public void setSocketFactory(MdmSecureSocketFactory socketFactory)
socketFactory - the instance of MdmSocketFactory
public String writeToString()
throws IOException
IOExceptionreadFromString(String)
public void readFromString(String contextString)
throws IOException,
ClassNotFoundException
contextString - string representation of context object.
IOException
ClassNotFoundExceptionwriteToString()public String getFullyQualifiedServerName()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
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.