public class Processor extends java.lang.Object implements SOAPMessageListener, SOAPMessageListenerEx
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_SOAP_PREFIX |
static int |
EXIT_1
Stopped
|
static int |
EXIT_11
Unknown Error
|
static int |
EXIT_12
Connection Error
|
static int |
EXIT_13
Connection Error
|
static int |
EXIT_14
Configuration Error
|
static int |
EXIT_15
Keystore fetch error
|
static int |
EXIT_IGNORE
Ignorable Exit by the Monitor.
|
static int |
EXIT_LICENSE_ERROR
Exit due to Licence error
|
static int |
EXIT_UNEXPECTED_EXCEPTION
Exit due to an exception
|
static boolean |
isLDAPService |
static XPathMetaInfo |
metaInfoForSOAPNS |
static java.lang.String |
SOAP_NAMESPACE |
static java.lang.String |
SOAP_NODE_SETTING_COLLECTION |
Constructor and Description |
---|
Processor(java.lang.String name)
Deprecated.
use other constructor instead.
|
Processor(java.lang.String processorDN,
LDAPDirectory directory,
IManagedComponent parentManagedComponent)
Create a new processor that connects to the Cordys ESB as the specified name.
|
Processor(java.lang.String processorDN,
LDAPDirectory directory,
IManagedComponent parentManagedComponent,
byte[] keystoreBuffer,
char[] keystorePassword,
java.lang.String signingCertificateAlias,
char[] signingKeyPassword)
Create a new processor that connects to the Cordys ESB as the specified name.
|
Modifier and Type | Method and Description |
---|---|
void |
addApplicationConnector(ApplicationConnector mapper)
Add a ApplicationConnector to the list of registered applicationConnectors.
|
void |
addRunningStateChangeHandler(RunningStateChangeHandler handler) |
void |
close()
Closes the connection to the Cordys ESB and afterwards all the registered XML applicationConnectors.
|
Connector |
getConnector()
Returns the Connector to the Cordys ESB that is opened by this soap processor.
|
LDAPDirectory |
getDirectory()
Returns the Directory Server proxy used by this soap processor.
|
Document |
getDocument() |
XMLSecPKCS12 |
getKeyStore() |
IManagedComponent |
getManagedComponent() |
MethodDefinition |
getMethodDefinition(java.lang.String methodName,
java.lang.String methodNamespace)
Returns the definition of the method with the specified name and namespace as configured for this soap processor in the LDAP.
|
java.lang.String |
getOrganization()
Returns the organization in which this soap processor is running.
|
DN |
getOrganizationDN()
Returns the organization in which this soap processor is running.
|
int |
getProcessorConfigurationNode()
Retrieves the node containing the processor configuration.
|
java.lang.String |
getProcessorStatus() |
Registration |
getRegistration()
Returns the Access Control Registration object that is available for this Processor.
|
java.lang.String |
getSOAPNode()
Returns the name of the soap node for which this soap processor is running.
|
java.lang.String |
getSoapNodeCertificateAlias() |
char[] |
getSoapNodeKeyPassword() |
ISettingsCollection |
getSOAPNodeSettingCollection()
Returns the SOAP Node setting Collection.
|
LDAPEntry |
getSOAPProcessorEntry()
Returns the ldap entry with which this processor was created
|
WSSHandler |
getWSSHandler() |
boolean |
isReady() |
static void |
main(java.lang.String[] args) |
boolean |
onReceive(int envelope)
Is called by the Connector to the Cordys ESB when a SOAP message comes in.
|
boolean |
onReceive(Message message)
Is called by the Connector to the Cordys ESB when a SOAP message comes in.
|
void |
open()
Opens all the registered applicationConnectors and then the connection to the Cordys ESB.
|
static void |
raiseJVMOutOfMemoryAlert(int processID,
java.lang.String machineName) |
void |
reset() |
void |
setAbortTime(int timeInSeconds)
Sets the abort time for all transactions and eventually the Processor.
|
void |
setAclCacheSize(int cacheSize)
Sets the ACL cache size.
|
void |
setAclRoleCacheSize(int cacheSize)
Sets the ACL cache size.
|
LDAPDirectory |
setDirectory(LDAPDirectory directory) |
void |
setGracefulCompleteTime(int timeInSeconds)
Sets the time for the graceful completion of the Transactions.
|
protected void |
stopInformationThread() |
public static final java.lang.String SOAP_NODE_SETTING_COLLECTION
public static final int EXIT_15
public static final int EXIT_14
public static final int EXIT_13
public static final int EXIT_12
public static final int EXIT_11
public static final int EXIT_1
public static final int EXIT_UNEXPECTED_EXCEPTION
public static final int EXIT_LICENSE_ERROR
public static final int EXIT_IGNORE
public static final java.lang.String SOAP_NAMESPACE
public static final java.lang.String DEFAULT_SOAP_PREFIX
public static final XPathMetaInfo metaInfoForSOAPNS
public static boolean isLDAPService
@Deprecated public Processor(java.lang.String name) throws ExceptionGroup, DirectoryException
name
- The name for which to start a connection to the Cordys ESB LDAP information. Notice, this constructor does not do any
initialization of LDAP information about the name. Use this constructor if you want to create an anonymous soap processor
(i.e., one that is not registered in LDAP).ExceptionGroup
DirectoryException
public Processor(java.lang.String processorDN, LDAPDirectory directory, IManagedComponent parentManagedComponent) throws ExceptionGroup, DirectoryException
entry
- The LDAPEntry for which to start a connection to the Cordys ESB LDAP information. Notice, this constructor uses the
information in the LDAP entry to initialize itself and load its applicationConnectors.parentManagedComponent
- parent managed component of this soap processor. This is usually the OS process hosting this processor.ExceptionGroup
DirectoryException
public Processor(java.lang.String processorDN, LDAPDirectory directory, IManagedComponent parentManagedComponent, byte[] keystoreBuffer, char[] keystorePassword, java.lang.String signingCertificateAlias, char[] signingKeyPassword) throws ExceptionGroup, DirectoryException
processorDN
- directory
- parentManagedComponent
- keystoreBuffer
- keystorePassword
- signingCertificateAlias
- signingKeyPassword
- ExceptionGroup
DirectoryException
public java.lang.String getSOAPNode()
public LDAPEntry getSOAPProcessorEntry()
public java.lang.String getOrganization()
public DN getOrganizationDN()
public void setAclCacheSize(int cacheSize)
cacheSize
- public void setAclRoleCacheSize(int cacheSize)
cacheSize
- public void setGracefulCompleteTime(int timeInSeconds)
timeInSeconds
- public void setAbortTime(int timeInSeconds)
timeInSeconds
- public void addRunningStateChangeHandler(RunningStateChangeHandler handler)
public Registration getRegistration()
public Document getDocument()
public void addApplicationConnector(ApplicationConnector mapper)
mapper
- The ApplicationConnector to add.public boolean isReady()
public void open()
public void reset()
public void close()
protected void stopInformationThread()
public java.lang.String getProcessorStatus()
public boolean onReceive(int envelope)
onReceive
in interface SOAPMessageListener
envelope
- The incoming message. This is an XML tree, which you can manipulate with the functions
in Node
.public boolean onReceive(Message message)
onReceive
in interface SOAPMessageListenerEx
message
- The incoming message. This is an wrapper around the envelope, which contains an XML tree, which you can manipulate with the functions
in Node
.public LDAPDirectory getDirectory()
public LDAPDirectory setDirectory(LDAPDirectory directory)
public Connector getConnector()
public IManagedComponent getManagedComponent()
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public MethodDefinition getMethodDefinition(java.lang.String methodName, java.lang.String methodNamespace)
public int getProcessorConfigurationNode()
public XMLSecPKCS12 getKeyStore() throws java.security.KeyStoreException, XMLSecException
java.security.KeyStoreException
XMLSecException
public WSSHandler getWSSHandler() throws java.security.KeyStoreException, WSSecurityException, XMLSecException
java.security.KeyStoreException
WSSecurityException
XMLSecException
public java.lang.String getSoapNodeCertificateAlias() throws java.security.KeyStoreException
java.security.KeyStoreException
public char[] getSoapNodeKeyPassword() throws java.security.KeyStoreException
java.security.KeyStoreException
public ISettingsCollection getSOAPNodeSettingCollection()
public static void raiseJVMOutOfMemoryAlert(int processID, java.lang.String machineName)