|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Context
Interface that defines the context in Tarsis MVC Framework.
Context defines a set of methods that allows access services provided by it. These
services includes access to object factories, init parameters or logger.
Context is passed to all components defined in Tarsis MVC Framework when they are
initialized.
Method Summary | |
---|---|
Authenticator |
getAuthenticator()
Returns default Authenticator for this context. |
Authorizator |
getAuthorizator()
Returns default Authorizator for this context. |
CommandFactory |
getCommandFactory()
Returns default CommandFactory for this context. |
Factory |
getFactory(java.lang.String name)
Returns an object Factory for given name in this context. |
java.lang.String |
getInitParameter(java.lang.String name)
Returns an init parameter of this context. |
java.util.Map |
getInitParameters()
Returns a map with all the init parameters of this context. |
Logger |
getLogger()
Returns Logger of this context. |
java.lang.String |
getRealPath(java.lang.String path)
Returns a String containing the real path for a given virtual path. |
java.net.URL |
getResource(java.lang.String path)
Returns a URL to the resource that is mapped to a specified path. |
java.io.InputStream |
getResourceAsStream(java.lang.String path)
Returns the resource located at the named path as an InputStream
object. |
Method Detail |
---|
java.lang.String getInitParameter(java.lang.String name)
name
- String name of parameter.
null
if parameter does not
exist.java.util.Map getInitParameters()
Authenticator getAuthenticator()
Authenticator
for this context.
Authenticator
for this context.Authorizator getAuthorizator()
Authorizator
for this context.
Authorizator
for this context.Logger getLogger()
Logger
of this context.
Logger
of this context.CommandFactory getCommandFactory()
CommandFactory
for this context.
CommandFactory
for this context.Factory getFactory(java.lang.String name)
Factory
for given name in this context.
name
- String name of factory.
Factory
for given name in this context or
null
if does not exist.java.net.URL getResource(java.lang.String path) throws java.net.MalformedURLException
path
- String a String
specifying the path to the resource.
null
if
there is no resource at that path.
java.net.MalformedURLException
- if the pathname is not given in the correct form.ServletContext.getResource(java.lang.String)
java.io.InputStream getResourceAsStream(java.lang.String path)
InputStream
object.
path
- String a String
specifying the path to the resource.
InputStream
returned to the servlet, or
null
if no resource exists at the specified path.ServletContext.getResourceAsStream(java.lang.String)
java.lang.String getRealPath(java.lang.String path)
path
- String a String
specifying the path to the resource.
String
specifying the real path, or
null
if the translation cannot be performedServletContext.getRealPath(java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |