|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectse.sj.stina.domain.provider.SjAbstractStinaInformationProviderDelegate
public abstract class SjAbstractStinaInformationProviderDelegate
Nested Class Summary | |
---|---|
(package private) static class |
SjAbstractStinaInformationProviderDelegate.PublicKey
|
Field Summary | |
---|---|
protected TiBRLProviderManagerInterface |
_brlProviderManager
|
protected TiBuiltinModelFactoryInterface |
_builtinModelFactory
|
protected SjClientSessionData |
_clientSessionData
|
protected static java.lang.String |
_errorTextInfo
|
protected static java.util.HashMap |
_exceptionNames
|
protected TiGeneralModelFactoryInterface |
_generalModelFactory
|
protected java.lang.String |
_hashAlgorithm
|
protected java.lang.String |
_hostName
|
protected java.lang.String |
_lastInitialCloneName
|
protected TiInformationProviderLoggerInterface |
_loggerInterface
|
protected boolean |
_logTimeInformationSeparately
|
protected boolean |
_logVerboseMessages
|
protected boolean |
_mapperNoReuse
|
protected int |
_messageReceivedLogLevel
|
protected int |
_messageSentLogLevel
|
protected java.lang.String |
_modelConstantsClassName
|
protected boolean |
_preferCompressedData
|
protected java.util.Properties |
_properties
|
protected SjStinaProviderMediumInterface |
_providerMedium
|
protected java.lang.String |
_resourceDirectory
|
protected static java.util.HashMap |
_serverErrorMessage
|
protected java.lang.String |
_shortClassName
|
protected org.stina.framework.support.statistics.TiStatisticsHandlerInterface |
_statisticsHandler
|
protected SjStinaModelFactoryInterface |
_stinaModelFactory
|
protected java.lang.String |
_stringEncoding
|
protected boolean |
_useControlDataCache
|
protected boolean |
_writeAnswerToFile
|
protected boolean |
_writeQueryToFile
|
protected static java.util.HashMap |
A_CPETRA_KEYS
|
protected static java.util.HashMap |
A_P2I_KEYS
|
protected static java.util.HashMap |
A_STINA_KEYS
|
protected static java.util.HashMap |
B_CPETRA_KEYS
|
protected static java.util.HashMap |
B_P2I_KEYS
|
protected static java.util.HashMap |
B_STINA_KEYS
|
protected static java.util.HashMap |
ENCRYPTION_VERSIONS_A
|
protected static java.util.HashMap |
ENCRYPTION_VERSIONS_B
|
protected static java.util.HashMap |
ENCRYPTION_VERSIONS_N
|
protected static java.util.HashMap |
ENCRYPTION_VERSIONS_O
|
protected static java.util.HashMap |
ENCRYPTION_VERSIONS_PER_ENVIRONMENT
|
protected static java.util.HashMap |
ENCRYPTION_VERSIONS_Q
|
protected static java.util.HashMap |
ENCRYPTION_VERSIONS_R
|
(package private) static int |
INBOUND
|
protected static java.util.HashMap |
N_CPETRA_KEYS
|
protected static java.util.HashMap |
N_P2I_KEYS
|
protected static java.util.HashMap |
N_STINA_KEYS
|
static java.lang.String |
NO_ENCRYPTION_VERSION
|
protected static java.util.HashMap |
O_CPETRA_KEYS
|
protected static java.util.HashMap |
O_P2I_KEYS
|
protected static java.util.HashMap |
O_STINA_KEYS
|
(package private) static int |
OUTBOUND
|
protected static java.util.HashMap |
PUBKEYS_A
|
protected static java.util.HashMap |
PUBKEYS_B
|
protected static java.util.HashMap |
PUBKEYS_N
|
protected static java.util.HashMap |
PUBKEYS_O
|
protected static java.util.HashMap |
PUBKEYS_PER_ENVIRONMENT
|
protected static java.util.HashMap |
PUBKEYS_Q
|
protected static java.util.HashMap |
PUBKEYS_R
|
protected static java.util.HashMap |
Q_CPETRA_KEYS
|
protected static java.util.HashMap |
Q_P2I_KEYS
|
protected static java.util.HashMap |
Q_STINA_KEYS
|
protected static java.util.HashMap |
R_CPETRA_KEYS
|
protected static java.util.HashMap |
R_P2I_KEYS
|
protected static java.util.HashMap |
R_STINA_KEYS
|
protected static int |
SERVER_ERR_NUM_NO_SUCH_OBJECT
|
(package private) static int |
SERVER_TIMEOUT_ERROR_CODE
|
static java.lang.String |
VERSION_0
|
static java.lang.String |
VERSION_1
|
static java.lang.String |
VERSION_2
|
static java.lang.String |
VERSION_3
|
static java.lang.String |
VERSION_4
|
static java.lang.String |
XML_VERSION
|
Constructor Summary | |
---|---|
SjAbstractStinaInformationProviderDelegate()
|
Method Summary | |
---|---|
protected void |
clearCachedMediumReferences()
|
protected abstract void |
clearServerObjectHolderCaches()
|
void |
completeFullMeasurement(java.lang.String label)
|
protected void |
completeFullMeasurement(java.lang.String label,
int logLevel)
|
static java.lang.String |
composeErrorText(se.sj.stina.exception.StinaPublicException spe,
java.lang.String errorTextInfo)
|
protected TiModelInterface |
concludeServerCall(java.lang.String methodName,
byte[] transferData,
TiModelInterface model)
|
protected TiModelInterface |
concludeServerCall(java.lang.String methodName,
byte[] transferData,
TiModelInterface model,
boolean logTransferData,
boolean storeClientSessionData)
|
protected TiModelInterface |
concludeServerCall(java.lang.String methodName,
byte[] transferData,
TiModelInterface model,
boolean logTransferData,
boolean storeClientSessionData,
boolean runExitRule)
|
protected TiModelInterface |
concludeServerCall(java.lang.String methodName,
byte[] transferData,
TiModelInterface model,
boolean logTransferData,
boolean storeClientSessionData,
boolean runExitRule,
java.lang.String knownServerClone)
|
protected SjClientCacheInfo |
createClientCacheInfo(byte[] data)
|
TiModelInterface |
createModel(java.lang.String modelName)
|
protected TiModelFactoryInterface |
createModelFactory(java.lang.String mfcn)
|
void |
errorHandling(java.lang.Throwable t,
java.lang.String methodName)
|
(package private) int |
getBeanAccessLogLevel()
|
TiBRLProviderManagerInterface |
getBRLProviderManager()
Method used by concrete implementations to be able to register rules Framework method to get the manager for busines rules A business rules manager handles all rule registration and deregistration. |
TiBuiltinModelFactoryInterface |
getBuiltinModelFactory()
|
protected byte[] |
getBytes(java.lang.String string)
|
protected static java.lang.String |
getCachedTransferDataSuffix()
|
(package private) SjClientInformation |
getClientInformation(SjClientSessionData sessionData,
boolean preferCompressedData)
|
protected SjClientSessionData |
getClientSessionData()
|
TiCrossReference |
getCrossReference()
|
(package private) java.lang.String |
getEncryptionVersion(java.lang.String environment,
java.lang.String routineId)
|
protected TiModelInterface[] |
getEntryRuleArgs(java.lang.String methodName,
java.lang.Object[] methodArgs)
|
static java.lang.String |
getErrorTextInfo()
|
protected TiModelInterface[] |
getExitRuleArgs(java.lang.String methodName,
TiModelInterface methodResult)
|
(package private) java.lang.String |
getFullXmlFilePath(java.lang.String fileName)
|
TiGeneralModelFactoryInterface |
getGeneralModelFactory()
|
protected TiModelInterface |
getGeneralModelFromXMLFile(java.lang.String fileName,
TiModelInterface model,
java.lang.String transferName)
|
java.lang.String |
getHostName()
|
SjItineraryResult |
getItineraryResult(byte[] id)
|
protected java.lang.String |
getLastInitialCloneName()
|
TiInformationProviderLoggerInterface |
getLoggerInterface()
Method used by concrete implementations to be able to log with log4j |
protected TiMapperAbstractMedium |
getLogMapperMedium()
|
TiMapper |
getMapper()
Get mapper, used to convert model to and from external objects. |
(package private) TiMapperAbstractMedium |
getMapperMedium()
Get mapper medium, strategy to convert to a certain type of external objects. |
(package private) int |
getMeasurementLogLevel()
|
int |
getMessageReceivedLogLevel()
|
int |
getMessageSentLogLevel()
|
(package private) int |
getMethodEntryLogLevel()
|
(package private) int |
getMethodExitLogLevel()
|
protected java.util.Properties |
getProperties()
|
protected java.lang.String |
getProperty(java.lang.String name)
|
protected java.lang.String |
getProperty(java.lang.String name,
java.lang.String defaultValue)
|
protected SjStinaProviderMediumInterface |
getProviderMedium()
|
protected SjStinaProviderMediumInterface |
getProviderMedium(boolean create)
|
(package private) java.lang.String |
getResourceDir()
|
(package private) SjAbstractStinaInformationProviderDelegate.PublicKey |
getRSAKey(java.lang.String environment,
java.lang.String routineId,
java.lang.String version)
|
protected abstract java.lang.String |
getSalesChannelType()
|
java.lang.String |
getServerErrorMessage(int errInt)
Gets the error message from the server. |
protected java.lang.String |
getShortClassName()
|
org.stina.framework.support.statistics.TiStatisticsHandlerInterface |
getStatisticsHandler()
Method used by concrete implementations to be able to save statistics |
SjStinaModelFactoryInterface |
getStinaModelFactory()
|
protected java.lang.String |
getString(byte[] bytes)
|
protected java.lang.String |
getTimeInformationString(SjTimeInformation timeInformation)
|
TiLogger |
getTimingLogger()
|
protected byte[] |
getTransferDataFromCache(java.lang.String cacheName)
|
protected static java.lang.Class[] |
getTypes(java.lang.Object[] objects)
|
(package private) TiMapperAbstractMedium |
getVerboseMapperMedium()
|
protected static java.lang.String |
getXmlDeclaration(java.lang.String encoding)
|
protected java.lang.String |
handleClientInformation(se.sj.stina.exception.StinaPublicException spe)
|
byte[] |
handleCompressedResult(byte[] compressedResult)
|
protected void |
handleExitRuleResult(java.lang.Object result,
java.lang.String methodName,
java.lang.String ruleName,
java.lang.String reason,
java.lang.String exceptionKey)
|
protected void |
handleInvocationRuleResult(java.lang.Object result,
java.lang.String methodName,
java.lang.String ruleName,
java.lang.String reason,
java.lang.String exceptionKey)
|
protected void |
initFullMeasurement(java.lang.String label)
|
protected void |
initFullMeasurement(java.lang.String label,
int logLevel)
|
protected void |
initialise()
|
protected void |
initialiseMapperMedium()
|
protected boolean |
initialiseProviderMedium(boolean failOnError)
|
protected void |
invokeExitRule(java.lang.String methodName,
TiModelInterface methodResult)
Invoke any exit rule registered for method methodName
by appealing to BRL manager to run rule
IP_ if registered. |
protected boolean |
isLogTimeInformationSeparately()
|
boolean |
isLogVerboseMessages()
|
(package private) boolean |
isMapperNoReuse()
|
(package private) boolean |
isWriteAnswerToFile()
|
(package private) boolean |
isWriteQueryToFile()
|
protected void |
logInternal(TiInformationProviderException ipe,
java.lang.String methodName,
int logLevel)
|
protected void |
logInternal(TiInformationProviderException ipe,
java.lang.String methodName,
java.lang.String serverClone,
int logLevel)
|
protected void |
logTimeInformationSequence(SjTimeInformationSequence timeInformationSequence,
java.lang.String methodName)
|
protected java.util.Properties |
makeProperties(java.lang.String inPropertyList)
|
protected boolean |
mediumWantsServerPinger()
|
void |
onEntry(java.lang.String methodName)
|
void |
onExit(java.lang.String methodName)
|
protected void |
onExit(java.lang.String methodName,
java.lang.String serverClone)
|
protected void |
performBeanAccessLog(java.lang.Object facade,
java.lang.String methodName)
|
protected TiModelInterface |
performCacheComparingServerCall(java.lang.String methodName,
java.lang.Object facade,
java.lang.Object[] args,
TiModelInterface model,
byte[] localData,
java.lang.String cacheName)
|
protected TiModelInterface |
performCacheComparingServerCall(java.lang.String methodName,
java.lang.Object facade,
java.lang.Object[] args,
TiModelInterface model,
byte[] localData,
java.lang.String cacheName,
boolean useCompression)
|
void |
performServerCall(java.lang.String methodName,
java.lang.Object facade,
java.lang.Object[] args,
boolean compressArgs)
|
TiModelInterface |
performServerCall(java.lang.String methodName,
java.lang.Object facade,
java.lang.Object[] args,
TiModelInterface model)
|
TiModelInterface |
performServerCall(java.lang.String methodName,
java.lang.Object facade,
java.lang.Object[] args,
TiModelInterface model,
boolean useCompression)
|
TiModelInterface |
performServerCall(java.lang.String methodName,
java.lang.Object facade,
java.lang.Object[] args,
TiModelInterface model,
boolean useCompression,
boolean verifyPermission)
|
protected boolean |
prefersCompressedData()
|
java.lang.Object[] |
prepareServerCall(java.lang.String methodName,
java.lang.Object[] args,
boolean compressArgs)
|
protected java.lang.Object[] |
prepareServerCall(java.lang.String methodName,
java.lang.Object[] args,
boolean includeClientInfo,
boolean compressArgs)
|
protected java.lang.Object[] |
prepareServerCall(java.lang.String methodName,
java.lang.Object[] args,
boolean includeClientInfo,
boolean compressArgs,
boolean verifyPermission)
|
(package private) void |
processModel(TiModelInterface model,
java.lang.String methodName)
|
protected void |
processModel(TiModelInterface model,
java.lang.String transferName,
java.lang.String methodName)
|
(package private) void |
processModel(TiModelInterface model,
java.lang.String transferName,
java.lang.String methodName,
java.lang.String fileName)
|
void |
putItineraryResult(byte[] id,
SjItineraryResult itinerary)
|
void |
removeItineraryResult(byte[] id)
|
void |
setBeanAccessLogLevel(int level)
|
void |
setBRLProviderManager(TiBRLProviderManagerInterface brlProviderManager)
Method used by concrete implementations to be able to register rules Framework method to get the manager for busines rules A business rules manager handles all rule registration and deregistartion. |
protected void |
setClientSessionData(SjClientSessionData clientSessionData)
|
void |
setLoggerInterface(TiInformationProviderLoggerInterface loggerInterface)
Implementation of where to log |
protected void |
setLogTimeInformationSeparately(boolean log)
|
protected void |
setMapper(TiMapper mapper)
|
(package private) void |
setMapperMedium(TiMapperAbstractMedium mapperMedium)
|
void |
setMapperNoReuse(boolean mnr)
|
void |
setMeasurementLogLevel(int level)
|
void |
setMessageReceivedLogLevel(int level)
|
void |
setMessageSentLogLevel(int level)
|
void |
setMethodEntryLogLevel(int level)
|
void |
setMethodExitLogLevel(int level)
|
protected void |
setProperties(java.util.Properties p)
|
protected void |
setProviderMedium(SjStinaProviderMediumInterface providerMedium)
|
void |
setStatisticsHandler(org.stina.framework.support.statistics.TiStatisticsHandlerInterface statisticsHandler)
Implementation of where to save statistics |
void |
setWriteAnswerToFile(boolean atf)
|
void |
setWriteQueryToFile(boolean qtf)
|
protected boolean |
shouldUseControlDataCache()
|
abstract java.lang.String |
specifyBuiltinModelFactoryClassName()
|
protected abstract TiModelInterface[] |
specifyEntryRuleArguments(java.lang.String methodName)
|
protected abstract TiModelInterface[] |
specifyExitRuleArguments(java.lang.String methodName)
|
abstract java.lang.String |
specifyGeneralModelFactoryClassName()
|
protected abstract TiMapperAbstractMedium |
specifyLogMapperMedium()
|
protected abstract TiMapper |
specifyMapper()
Method implemented by concrete implementations to specify the mapper converting to and from external structures Example: Generate a mapper with sdl compiler. |
protected abstract TiMapperAbstractMedium |
specifyMapperMedium()
Method implemented by concrete implementations to specify the mapper medium used by mapper to conver to and from objects. |
abstract java.lang.String |
specifyModelFactoryClassName()
|
protected abstract java.lang.String |
specifyProviderMediumClassName()
Method implemented by concrete implementations to specify the class name of the provider medium to use. |
protected abstract java.lang.String |
specifyProviderMediumPropertyList()
Method implemented by concrete implementations to specify the properties used by provider medium class. |
protected java.lang.String |
specifyStringEncoding()
|
protected abstract TiMapperAbstractMedium |
specifyVerboseMapperMedium()
|
protected java.lang.String |
storeClientSessionData(TiModelInterface result)
|
protected void |
throwException(java.lang.String exceptionKey,
java.lang.String msg,
int code)
For simulation purposes |
protected java.lang.Object |
toExternalFromModel(java.lang.String key,
TiModelInterface model)
Convert model to external format. |
java.lang.String |
toLogExternalFromModel(java.lang.String key,
TiModelInterface model)
|
protected void |
toModelFromExternal(java.lang.String key,
java.lang.Object external,
TiModelInterface model)
Convert external object to model. |
protected void |
toModelFromXmlExternal(java.lang.String key,
java.lang.String xmlString,
TiModelInterface model)
|
protected java.lang.String |
toXmlExternalFromModel(java.lang.String key,
TiModelInterface model,
boolean terse)
|
protected void |
updateControlDataCache(java.lang.String cacheName,
byte[] td)
|
protected void |
verifyInvocationPermission(java.lang.String methodName,
java.lang.Object[] methodArgs)
Determine whether client has permission to call method methodName with methodArgs by
appealing to BRL manager to run rules
INVOCATION_ARBITER_RULE and
IP_ if registered. |
protected void |
writeGeneralModelToXMLFile(java.lang.String fileName,
TiModelInterface model,
java.lang.String transferName)
|
protected void |
writeModelToXMLFile(TiModelInterface model,
java.lang.String fileName)
|
protected void |
writeModelToXMLFile(TiModelInterface model,
java.lang.String transferName,
java.lang.String fileName)
|
(package private) void |
writeTransferDataToFile(byte[] transferData,
java.lang.String fileName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface se.sj.stina.domain.provider.SjStinaServerCallerInterface |
---|
getEncryptedDataInfo, hasServerLocally, logMessageReceived, logMessageSent, shouldCacheCustomers, shouldCacheOrders, unCache, unCache |
Methods inherited from interface org.stina.framework.corex.provider.TiInformationProviderLispInterface |
---|
lookupData, specifyModelConstantsName |
Field Detail |
---|
public static final java.lang.String XML_VERSION
static final int INBOUND
static final int OUTBOUND
static final int SERVER_TIMEOUT_ERROR_CODE
protected volatile SjStinaProviderMediumInterface _providerMedium
protected SjStinaModelFactoryInterface _stinaModelFactory
protected TiGeneralModelFactoryInterface _generalModelFactory
protected TiBuiltinModelFactoryInterface _builtinModelFactory
protected java.lang.String _modelConstantsClassName
protected java.util.Properties _properties
protected java.lang.String _hostName
protected TiBRLProviderManagerInterface _brlProviderManager
protected TiInformationProviderLoggerInterface _loggerInterface
protected org.stina.framework.support.statistics.TiStatisticsHandlerInterface _statisticsHandler
protected int _messageReceivedLogLevel
protected int _messageSentLogLevel
protected boolean _logVerboseMessages
protected boolean _logTimeInformationSeparately
protected boolean _writeQueryToFile
protected boolean _writeAnswerToFile
protected boolean _mapperNoReuse
protected boolean _useControlDataCache
protected java.lang.String _hashAlgorithm
protected boolean _preferCompressedData
protected java.lang.String _stringEncoding
protected java.lang.String _resourceDirectory
protected java.lang.String _shortClassName
protected SjClientSessionData _clientSessionData
protected java.lang.String _lastInitialCloneName
protected static java.lang.String _errorTextInfo
protected static java.util.HashMap _exceptionNames
protected static java.util.HashMap _serverErrorMessage
protected static final int SERVER_ERR_NUM_NO_SUCH_OBJECT
public static final java.lang.String VERSION_0
public static final java.lang.String VERSION_1
public static final java.lang.String VERSION_2
public static final java.lang.String VERSION_3
public static final java.lang.String VERSION_4
public static final java.lang.String NO_ENCRYPTION_VERSION
protected static final java.util.HashMap PUBKEYS_PER_ENVIRONMENT
protected static final java.util.HashMap ENCRYPTION_VERSIONS_PER_ENVIRONMENT
protected static final java.util.HashMap PUBKEYS_B
protected static final java.util.HashMap PUBKEYS_Q
protected static final java.util.HashMap PUBKEYS_R
protected static final java.util.HashMap PUBKEYS_A
protected static final java.util.HashMap PUBKEYS_N
protected static final java.util.HashMap PUBKEYS_O
protected static final java.util.HashMap B_STINA_KEYS
protected static final java.util.HashMap Q_STINA_KEYS
protected static final java.util.HashMap R_STINA_KEYS
protected static final java.util.HashMap A_STINA_KEYS
protected static final java.util.HashMap N_STINA_KEYS
protected static final java.util.HashMap O_STINA_KEYS
protected static final java.util.HashMap B_CPETRA_KEYS
protected static final java.util.HashMap Q_CPETRA_KEYS
protected static final java.util.HashMap R_CPETRA_KEYS
protected static final java.util.HashMap A_CPETRA_KEYS
protected static final java.util.HashMap N_CPETRA_KEYS
protected static final java.util.HashMap O_CPETRA_KEYS
protected static final java.util.HashMap B_P2I_KEYS
protected static final java.util.HashMap Q_P2I_KEYS
protected static final java.util.HashMap R_P2I_KEYS
protected static final java.util.HashMap A_P2I_KEYS
protected static final java.util.HashMap N_P2I_KEYS
protected static final java.util.HashMap O_P2I_KEYS
protected static final java.util.HashMap ENCRYPTION_VERSIONS_B
protected static final java.util.HashMap ENCRYPTION_VERSIONS_Q
protected static final java.util.HashMap ENCRYPTION_VERSIONS_R
protected static final java.util.HashMap ENCRYPTION_VERSIONS_A
protected static final java.util.HashMap ENCRYPTION_VERSIONS_N
protected static final java.util.HashMap ENCRYPTION_VERSIONS_O
Constructor Detail |
---|
public SjAbstractStinaInformationProviderDelegate()
Method Detail |
---|
protected void initialise()
protected void initialiseMapperMedium()
protected boolean initialiseProviderMedium(boolean failOnError)
protected java.lang.String getShortClassName()
int getMeasurementLogLevel()
public void setMeasurementLogLevel(int level)
int getBeanAccessLogLevel()
public void setBeanAccessLogLevel(int level)
boolean isWriteAnswerToFile()
public void setWriteAnswerToFile(boolean atf)
boolean isWriteQueryToFile()
public void setWriteQueryToFile(boolean qtf)
boolean isMapperNoReuse()
public void setMapperNoReuse(boolean mnr)
protected abstract java.lang.String getSalesChannelType()
protected SjClientSessionData getClientSessionData()
protected void setClientSessionData(SjClientSessionData clientSessionData)
protected SjStinaProviderMediumInterface getProviderMedium(boolean create)
create
is
false.protected SjStinaProviderMediumInterface getProviderMedium()
protected void setProviderMedium(SjStinaProviderMediumInterface providerMedium)
protected boolean mediumWantsServerPinger()
protected void clearCachedMediumReferences()
protected abstract void clearServerObjectHolderCaches()
public TiBRLProviderManagerInterface getBRLProviderManager()
getBRLProviderManager
in interface TiInformationProviderBRLInterface
TiBRLProviderManagerInterface
public void setBRLProviderManager(TiBRLProviderManagerInterface brlProviderManager)
TiBRLProviderManagerInterface
public TiInformationProviderLoggerInterface getLoggerInterface()
public void setLoggerInterface(TiInformationProviderLoggerInterface loggerInterface)
loggerInterface
- where to log messagespublic org.stina.framework.support.statistics.TiStatisticsHandlerInterface getStatisticsHandler()
public void setStatisticsHandler(org.stina.framework.support.statistics.TiStatisticsHandlerInterface statisticsHandler)
loggerInterface
- where to log messagesprotected void toModelFromXmlExternal(java.lang.String key, java.lang.String xmlString, TiModelInterface model)
protected void toModelFromExternal(java.lang.String key, java.lang.Object external, TiModelInterface model)
key
- the name of the external object to convert.external
- external object to convert to model.model
- model to which the external object will be converted.public java.lang.String toLogExternalFromModel(java.lang.String key, TiModelInterface model)
toLogExternalFromModel
in interface SjStinaServerCallerInterface
protected java.lang.String toXmlExternalFromModel(java.lang.String key, TiModelInterface model, boolean terse)
protected java.lang.Object toExternalFromModel(java.lang.String key, TiModelInterface model)
key
- the domain name of the object to convertmodel
- model to convert to external object.
public TiMapper getMapper()
protected void setMapper(TiMapper mapper)
TiMapperAbstractMedium getMapperMedium()
void setMapperMedium(TiMapperAbstractMedium mapperMedium)
TiMapperAbstractMedium getVerboseMapperMedium()
protected TiMapperAbstractMedium getLogMapperMedium()
public java.lang.String getHostName()
public abstract java.lang.String specifyModelFactoryClassName()
TiModelFactoryInterface
. It should also either have a
static getInstance()
method or a public default constructor.TiModelFactoryInterface
public abstract java.lang.String specifyGeneralModelFactoryClassName()
public abstract java.lang.String specifyBuiltinModelFactoryClassName()
public TiModelInterface createModel(java.lang.String modelName) throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException
createModel
in interface TiInformationProviderLispInterface
TiFactoryUnavailableException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
public SjStinaModelFactoryInterface getStinaModelFactory()
TiFactoryUnavailableException
public TiGeneralModelFactoryInterface getGeneralModelFactory()
TiFactoryUnavailableException
public TiBuiltinModelFactoryInterface getBuiltinModelFactory()
TiFactoryUnavailableException
protected TiModelFactoryInterface createModelFactory(java.lang.String mfcn)
protected abstract TiMapper specifyMapper()
protected TiMapper specifyMapper()
{
return new MyMapper();
}
protected abstract TiMapperAbstractMedium specifyMapperMedium()
protected TiMapperAbstractMedium specifyMapperMedium()
{
return new TiToFromTransferMiniData();
}
protected abstract TiMapperAbstractMedium specifyVerboseMapperMedium()
protected abstract TiMapperAbstractMedium specifyLogMapperMedium()
protected abstract java.lang.String specifyProviderMediumClassName()
protected String
specifyProviderMediumClassName()
{
return "se.sj.stina.domain.provider.LknStinaProviderMedium";
}
protected abstract java.lang.String specifyProviderMediumPropertyList()
protected String specifyProviderMediumPropertyList()
{
return "HOST_NAME=//server.company.se:2736";
}
protected java.lang.String getProperty(java.lang.String name)
protected java.lang.String getProperty(java.lang.String name, java.lang.String defaultValue)
protected java.util.Properties getProperties()
protected void setProperties(java.util.Properties p)
protected java.util.Properties makeProperties(java.lang.String inPropertyList)
public TiCrossReference getCrossReference()
protected void initFullMeasurement(java.lang.String label)
protected void initFullMeasurement(java.lang.String label, int logLevel)
public void completeFullMeasurement(java.lang.String label)
completeFullMeasurement
in interface SjStinaServerCallerInterface
protected void completeFullMeasurement(java.lang.String label, int logLevel)
public void onEntry(java.lang.String methodName)
onEntry
in interface SjStinaServerCallerInterface
public void onExit(java.lang.String methodName)
onExit
in interface SjStinaServerCallerInterface
protected void onExit(java.lang.String methodName, java.lang.String serverClone)
SjAbstractStinaInformationProviderDelegate.PublicKey getRSAKey(java.lang.String environment, java.lang.String routineId, java.lang.String version)
java.lang.String getEncryptionVersion(java.lang.String environment, java.lang.String routineId)
public byte[] handleCompressedResult(byte[] compressedResult)
int getMethodEntryLogLevel()
public void setMethodEntryLogLevel(int level)
int getMethodExitLogLevel()
public void setMethodExitLogLevel(int level)
public int getMessageSentLogLevel()
getMessageSentLogLevel
in interface SjStinaServerCallerInterface
public void setMessageSentLogLevel(int level)
public int getMessageReceivedLogLevel()
getMessageReceivedLogLevel
in interface SjStinaServerCallerInterface
public void setMessageReceivedLogLevel(int level)
public boolean isLogVerboseMessages()
void processModel(TiModelInterface model, java.lang.String transferName, java.lang.String methodName, java.lang.String fileName)
protected void processModel(TiModelInterface model, java.lang.String transferName, java.lang.String methodName)
void processModel(TiModelInterface model, java.lang.String methodName)
protected void logTimeInformationSequence(SjTimeInformationSequence timeInformationSequence, java.lang.String methodName)
protected java.lang.String getTimeInformationString(SjTimeInformation timeInformation)
protected boolean isLogTimeInformationSeparately()
protected void setLogTimeInformationSeparately(boolean log)
protected static java.lang.Class[] getTypes(java.lang.Object[] objects)
protected java.lang.String getLastInitialCloneName()
protected java.lang.String storeClientSessionData(TiModelInterface result)
SjClientInformation getClientInformation(SjClientSessionData sessionData, boolean preferCompressedData)
protected void updateControlDataCache(java.lang.String cacheName, byte[] td)
protected boolean shouldUseControlDataCache()
protected boolean prefersCompressedData()
protected void writeModelToXMLFile(TiModelInterface model, java.lang.String fileName)
protected void writeModelToXMLFile(TiModelInterface model, java.lang.String transferName, java.lang.String fileName)
protected TiModelInterface getGeneralModelFromXMLFile(java.lang.String fileName, TiModelInterface model, java.lang.String transferName)
protected void writeGeneralModelToXMLFile(java.lang.String fileName, TiModelInterface model, java.lang.String transferName)
java.lang.String getFullXmlFilePath(java.lang.String fileName)
protected SjClientCacheInfo createClientCacheInfo(byte[] data)
protected byte[] getTransferDataFromCache(java.lang.String cacheName)
void writeTransferDataToFile(byte[] transferData, java.lang.String fileName)
protected static java.lang.String getCachedTransferDataSuffix()
java.lang.String getResourceDir()
public java.lang.Object[] prepareServerCall(java.lang.String methodName, java.lang.Object[] args, boolean compressArgs) throws TiInformationException, TiSevereException, TiFatalException
prepareServerCall
in interface SjStinaServerCallerInterface
TiInformationException
TiSevereException
TiFatalException
protected java.lang.Object[] prepareServerCall(java.lang.String methodName, java.lang.Object[] args, boolean includeClientInfo, boolean compressArgs) throws TiInformationException, TiSevereException, TiFatalException
TiInformationException
TiSevereException
TiFatalException
protected java.lang.Object[] prepareServerCall(java.lang.String methodName, java.lang.Object[] args, boolean includeClientInfo, boolean compressArgs, boolean verifyPermission) throws TiInformationException, TiSevereException, TiFatalException
TiInformationException
TiSevereException
TiFatalException
public TiModelInterface performServerCall(java.lang.String methodName, java.lang.Object facade, java.lang.Object[] args, TiModelInterface model) throws TiAmbiguousDataException, TiBadTransferDataException, TiInformationException, TiSevereException, TiFatalException
performServerCall
in interface SjStinaServerCallerInterface
TiAmbiguousDataException
TiBadTransferDataException
TiInformationException
TiSevereException
TiFatalException
public TiModelInterface performServerCall(java.lang.String methodName, java.lang.Object facade, java.lang.Object[] args, TiModelInterface model, boolean useCompression) throws TiAmbiguousDataException, TiBadTransferDataException, TiInformationException, TiSevereException, TiFatalException
performServerCall
in interface SjStinaServerCallerInterface
TiAmbiguousDataException
TiBadTransferDataException
TiInformationException
TiSevereException
TiFatalException
public TiModelInterface performServerCall(java.lang.String methodName, java.lang.Object facade, java.lang.Object[] args, TiModelInterface model, boolean useCompression, boolean verifyPermission) throws TiAmbiguousDataException, TiBadTransferDataException, TiInformationException, TiSevereException, TiFatalException
performServerCall
in interface SjStinaServerCallerInterface
TiAmbiguousDataException
TiBadTransferDataException
TiInformationException
TiSevereException
TiFatalException
public void performServerCall(java.lang.String methodName, java.lang.Object facade, java.lang.Object[] args, boolean compressArgs) throws TiAmbiguousDataException, TiBadTransferDataException, TiInformationException, TiSevereException, TiFatalException
performServerCall
in interface SjStinaServerCallerInterface
TiAmbiguousDataException
TiBadTransferDataException
TiInformationException
TiSevereException
TiFatalException
protected TiModelInterface performCacheComparingServerCall(java.lang.String methodName, java.lang.Object facade, java.lang.Object[] args, TiModelInterface model, byte[] localData, java.lang.String cacheName) throws TiAmbiguousDataException, TiBadTransferDataException, TiInformationException, TiSevereException, TiFatalException
TiAmbiguousDataException
TiBadTransferDataException
TiInformationException
TiSevereException
TiFatalException
protected TiModelInterface performCacheComparingServerCall(java.lang.String methodName, java.lang.Object facade, java.lang.Object[] args, TiModelInterface model, byte[] localData, java.lang.String cacheName, boolean useCompression) throws TiAmbiguousDataException, TiBadTransferDataException, TiInformationException, TiSevereException, TiFatalException
TiAmbiguousDataException
TiBadTransferDataException
TiInformationException
TiSevereException
TiFatalException
protected TiModelInterface concludeServerCall(java.lang.String methodName, byte[] transferData, TiModelInterface model) throws TiInformationException, TiSevereException, TiFatalException
TiInformationException
TiSevereException
TiFatalException
protected TiModelInterface concludeServerCall(java.lang.String methodName, byte[] transferData, TiModelInterface model, boolean logTransferData, boolean storeClientSessionData) throws TiInformationException, TiSevereException, TiFatalException
TiInformationException
TiSevereException
TiFatalException
protected TiModelInterface concludeServerCall(java.lang.String methodName, byte[] transferData, TiModelInterface model, boolean logTransferData, boolean storeClientSessionData, boolean runExitRule) throws TiInformationException, TiSevereException, TiFatalException
TiInformationException
TiSevereException
TiFatalException
protected TiModelInterface concludeServerCall(java.lang.String methodName, byte[] transferData, TiModelInterface model, boolean logTransferData, boolean storeClientSessionData, boolean runExitRule, java.lang.String knownServerClone) throws TiInformationException, TiSevereException, TiFatalException
TiInformationException
TiSevereException
TiFatalException
protected abstract TiModelInterface[] specifyEntryRuleArguments(java.lang.String methodName)
methodName
- The name of the method for which entry rule arguments
are sought.
methodName
.protected abstract TiModelInterface[] specifyExitRuleArguments(java.lang.String methodName)
methodName
- The name of the method for which exit rule arguments
are sought.
methodName
.protected void verifyInvocationPermission(java.lang.String methodName, java.lang.Object[] methodArgs) throws TiInformationException, TiSevereException, TiFatalException
methodName
with methodArgs
by
appealing to BRL manager to run rules
INVOCATION_ARBITER_RULE
and
IP__entry
if registered.
TiSevereException
- if permission is denied by either rule.
TiInformationException
TiFatalException
protected void invokeExitRule(java.lang.String methodName, TiModelInterface methodResult) throws TiInformationException, TiSevereException, TiFatalException
methodName
by appealing to BRL manager to run rule
IP__exit
if registered.
TiInformationException
- if rule so dictates.
TiSevereException
- if rule so dictates.
TiFatalException
- if rule so dictates.protected TiModelInterface[] getEntryRuleArgs(java.lang.String methodName, java.lang.Object[] methodArgs)
protected void handleInvocationRuleResult(java.lang.Object result, java.lang.String methodName, java.lang.String ruleName, java.lang.String reason, java.lang.String exceptionKey) throws TiInformationException, TiSevereException, TiFatalException
TiInformationException
TiSevereException
TiFatalException
protected TiModelInterface[] getExitRuleArgs(java.lang.String methodName, TiModelInterface methodResult)
protected void handleExitRuleResult(java.lang.Object result, java.lang.String methodName, java.lang.String ruleName, java.lang.String reason, java.lang.String exceptionKey) throws TiInformationException, TiSevereException, TiFatalException
TiInformationException
TiSevereException
TiFatalException
protected byte[] getBytes(java.lang.String string)
protected java.lang.String getString(byte[] bytes)
protected java.lang.String specifyStringEncoding()
protected static java.lang.String getXmlDeclaration(java.lang.String encoding)
protected void logInternal(TiInformationProviderException ipe, java.lang.String methodName, int logLevel)
protected void logInternal(TiInformationProviderException ipe, java.lang.String methodName, java.lang.String serverClone, int logLevel)
protected java.lang.String handleClientInformation(se.sj.stina.exception.StinaPublicException spe)
public void errorHandling(java.lang.Throwable t, java.lang.String methodName) throws TiAmbiguousDataException, TiBadTransferDataException, TiInformationException, TiSevereException, TiFatalException
errorHandling
in interface SjStinaServerCallerInterface
TiAmbiguousDataException
TiBadTransferDataException
TiInformationException
TiSevereException
TiFatalException
public static java.lang.String getErrorTextInfo()
public static java.lang.String composeErrorText(se.sj.stina.exception.StinaPublicException spe, java.lang.String errorTextInfo)
protected void throwException(java.lang.String exceptionKey, java.lang.String msg, int code) throws TiInformationException, TiSevereException, TiFatalException
exceptionKey
- a String by which an exception class name can
be looked up.msg
- A text the exception should carry.code
- An error code for the exception.
are sought.
TiInformationException
TiSevereException
TiFatalException
public TiLogger getTimingLogger()
public java.lang.String getServerErrorMessage(int errInt)
errInt
- The number of the error message
public SjItineraryResult getItineraryResult(byte[] id)
getItineraryResult
in interface SjStinaServerCallerInterface
public void putItineraryResult(byte[] id, SjItineraryResult itinerary)
putItineraryResult
in interface SjStinaServerCallerInterface
public void removeItineraryResult(byte[] id)
removeItineraryResult
in interface SjStinaServerCallerInterface
protected void performBeanAccessLog(java.lang.Object facade, java.lang.String methodName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |