|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.jwarp.service.ContextFactory
The context factory is the basic class of all JWeb applicatrions. This singleton class is the one and only capaböe of registereing and loading application contexts. If you want to load an application it must be registered to this component.
| Method Summary | |
ITicket |
createContext(org.jdom.Element configuration)
Create a context from the given configuration |
ITicket[] |
createContexts(org.jdom.Element configuration)
Creates several contexts from the given configuration. |
java.lang.String[] |
getContextNames()
Return the names of all defined contexts. |
static IContextFactory |
getInstance()
Returns the one and only instance of the ContextFactory |
ITicket |
login(java.lang.String user,
java.lang.String pwd,
java.lang.String context)
login for the given user (ticket) returns the context for this user. |
IContext |
removeContext(java.lang.String name,
ITicket ticket)
This method removes a context. |
| Methods inherited from class java.lang.Object |
|
| Method Detail |
public static IContextFactory getInstance()
public ITicket login(java.lang.String user,
java.lang.String pwd,
java.lang.String context)
throws InvalidContextException,
java.lang.SecurityException
login in interface IContextFactoryorg.jwarp.service.IContextFactoryuser - The user's idpwd - The user's passwordcontext - The target context where this user want to get access topublic java.lang.String[] getContextNames()
getContextNames in interface IContextFactoryorg.jwarp.service.IContextFactory
public ITicket createContext(org.jdom.Element configuration)
throws ConfigurationException,
java.lang.SecurityException
createContext in interface IContextFactoryconfiguration - the configuration containing one contextConfigurationException - If the configuration of the context failedjava.lang.SecurityException - If the context could not be established, e.g. another
context with the same name is running yet.
public ITicket[] createContexts(org.jdom.Element configuration)
throws ConfigurationException,
java.lang.SecurityException
createContexts in interface IContextFactoryconfiguration - the configuration containing a list of contextsConfigurationException - If the configuration of a context failedjava.lang.SecurityException - If a context could not be established, e.g. another
context with the same name is running yet.
public IContext removeContext(java.lang.String name,
ITicket ticket)
throws InvalidContextException,
java.lang.SecurityException
removeContext in interface IContextFactoryticket - The securityTicketInvalidContextException - The context of the ticket was not found, e.g. was removed yet.java.lang.SecurityException - The context did not allow the user to remove it..
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||