|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ogf.graap.wsag.wsrf.WsrfEngine
public class WsrfEngine
The WSAGEngine provides access to all agreement factories configured for this engine. The available
factories can be retrieved via the agreement factory home interface. The agreement factory home is
retrieved by the getAgreementFactoryHome()
method. Before the engine can be used it must be
initialized. Engine initialization is triggered by the initializeEngine(String)
method.
Field Summary | |
---|---|
static String |
WSAG4J_WSRF_ENGINE_FILE_NAME
Allows to specify an alternate filename for the wsrf-engine configuration via the system properties. |
Constructor Summary | |
---|---|
WsrfEngine()
|
Method Summary | |
---|---|
static ConfigurationType |
findWsrfConfiguration(String fileName)
|
static IAgreementFactoryHome |
getAgreementFactoryHome()
Returns the agreement factory home |
static String |
getGatewayURL()
|
static LoginContext |
getLoginContext()
Returns the WSAG4J engine login context. |
static WsagMessageContext |
getWsagMessageContext()
Returns the message context for the current invocation (thread). |
static WSRFEngineConfigurationType |
getWSRFConfiguration()
|
static void |
initializeEngine(String defaultGatewayURL)
Initializes the WSAG4J Engine. |
static boolean |
isAllowAnonymousAccess()
Sets if anonymous access to the server is allowed. |
static void |
setAllowAnonymousAccess(boolean allowAnonymousAccess)
Sets if anonymous access to the server is allowed. |
static void |
setLoginContext(LoginContext context)
Sets the WSAG4J engine login context. |
static void |
setWsagMessageContext(WsagMessageContext context)
Sets the message context for the current invocation (thread). |
static void |
shutdownEngine()
Shutdown of the WSAG4J engine instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String WSAG4J_WSRF_ENGINE_FILE_NAME
System.setProperty(String, String)
,
Constant Field ValuesConstructor Detail |
---|
public WsrfEngine()
Method Detail |
---|
public static WsagMessageContext getWsagMessageContext()
public static void setWsagMessageContext(WsagMessageContext context)
context
- the message contextpublic static void initializeEngine(String defaultGatewayURL) throws Exception
WsagConstants.WSAG4J_WSRF_ENGINE_CONFIG_FILE
constant. This value can be overwritten by the
system property "wsag4j.wsrf-engine.config.filename".
defaultGatewayURL
- the default gateway URL
Exception
- indicates an error during engine initializationpublic static void shutdownEngine() throws Exception
Exception
- indicates an error during engine shutdownpublic static WSRFEngineConfigurationType getWSRFConfiguration()
public static String getGatewayURL()
public static void setLoginContext(LoginContext context)
context
- the login contextpublic static LoginContext getLoginContext()
public static IAgreementFactoryHome getAgreementFactoryHome()
public static void setAllowAnonymousAccess(boolean allowAnonymousAccess)
allowAnonymousAccess
- the allowAnonymousAccess to setpublic static boolean isAllowAnonymousAccess()
public static ConfigurationType findWsrfConfiguration(String fileName) throws IOException
fileName
- The file name of the requested XML configuration file.
XmlObject
.
IOException
- the configuration file could not be read or a related error occurred
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |