|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sap.mdm.session.AbstractSessionContext
This class is abstract implementation of MdmSessionContext interface.
ServerSessionContext,
RepositorySessionContext,
UserSessionContext,
Serialized Form| Constructor Summary | |
AbstractSessionContext()
Constructor |
|
AbstractSessionContext(AbstractSessionContext ctx)
Copy Constructor |
|
| Method Summary | |
boolean |
equals(Object obj)
|
String |
getApplicationId()
|
String |
getApplicationName()
Returns unique application name. |
int |
getConnectionType()
Returns the connection type |
String |
getContextIdentifier()
Returns unique context identifier. |
MdmSecureSocketFactory |
getSocketFactory()
Returns the instance of MdmSocketFactory used for creating a secure socket |
int |
hashCode()
|
boolean |
isTrustedConnection()
Indicates if connection should be created as trusted connection In this case the user password does not play a role |
boolean |
isWebServiceContext()
|
void |
readFromString(String contextString)
Initializes context state from the binary string representation of context object. |
void |
setApplicationId(String applicationId)
|
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 |
setHashCode(int hashCode)
Sets hash code. |
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. |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.sap.mdm.session.MdmSessionContext |
getFullyQualifiedServerName, getServerName |
| Constructor Detail |
public AbstractSessionContext()
public AbstractSessionContext(AbstractSessionContext ctx)
| Method Detail |
public int hashCode()
public boolean equals(Object obj)
public boolean isTrustedConnection()
MdmSessionContext
isTrustedConnection in interface MdmSessionContexttrue if connection should be trusted, false otherwisepublic void setTrustedConnection(boolean isTrustedConnection)
MdmSessionContext
setTrustedConnection in interface MdmSessionContextisTrustedConnection - true if connection should be trustedpublic int getConnectionType()
MdmSessionContext
getConnectionType in interface MdmSessionContextfor connection type constantspublic void setConnectionType(int connectionType)
MdmSessionContext
setConnectionType in interface MdmSessionContextconnectionType - the connection typefor connection type constantspublic String getApplicationId()
getApplicationId in interface MdmSessionContextpublic String getApplicationName()
MdmSessionContext
getApplicationName in interface MdmSessionContextSessionManager,
MdmPasswordStoragepublic void setApplicationId(String applicationId)
setApplicationId in interface MdmSessionContextpublic void setApplicationName(String applicationName)
MdmSessionContext
setApplicationName in interface MdmSessionContextapplicationName - the unique application nameSessionManager,
MdmPasswordStoragepublic String getContextIdentifier()
MdmSessionContext
getContextIdentifier in interface MdmSessionContextSessionManager,
MdmPasswordStoragepublic void setContextIdentifier(String contextIdentifier)
MdmSessionContext
setContextIdentifier in interface MdmSessionContextcontextIdentifier - the unique context identifierSessionManager,
MdmPasswordStoragepublic MdmSecureSocketFactory getSocketFactory()
MdmSessionContext
getSocketFactory in interface MdmSessionContextpublic void setSocketFactory(MdmSecureSocketFactory socketFactory)
MdmSessionContext
setSocketFactory in interface MdmSessionContextsocketFactory - the instance of MdmSocketFactorypublic void setHashCode(int hashCode)
hashCode - hash code.
public String writeToString()
throws IOException
MdmSessionContext
writeToString in interface MdmSessionContextIOExceptionMdmSessionContext.readFromString(String)
public void readFromString(String contextString)
throws IOException,
ClassNotFoundException
MdmSessionContext
readFromString in interface MdmSessionContextcontextString - string representation of context object.
ClassNotFoundException
IOExceptionMdmSessionContext.writeToString()public boolean isWebServiceContext()
|
|||||||||||
| 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.