|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ogf.graap.wsag.server.engine.WsagEngine
public class WsagEngine
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 | |
---|---|
WsagEngine()
|
Method Summary | |
---|---|
static IAgreementFactoryHome |
getAgreementFactoryHome()
Returns the agreement factory home |
static IAgreementHome |
getAgreementHome()
Deprecated. |
static String |
getGatewayURL()
|
static LoginContext |
getLoginContext()
Returns the WSAG4J engine login context. |
static ConfigurationType |
getWSAG4JConfiguration()
|
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 |
setAgreementFactoryHome(IAgreementFactoryHome agreementFactoryHome)
Overwrites the instance created during initialization. |
static void |
setAgreementHome(IAgreementHome agreementHome)
Overwrites the instance created during initialization. |
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 WsagEngine()
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 ConfigurationType getWSAG4JConfiguration()
public 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 setAgreementFactoryHome(IAgreementFactoryHome agreementFactoryHome)
agreementFactoryHome
- the home interface to look up the agreement factories@Deprecated public static IAgreementHome getAgreementHome()
public static void setAgreementHome(IAgreementHome agreementHome)
agreementHome
- the home interface to look up the existing agreementspublic static void setAllowAnonymousAccess(boolean allowAnonymousAccess)
allowAnonymousAccess
- the allowAnonymousAccess to setpublic static boolean isAllowAnonymousAccess()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |