anvil.server
Class Zone
java.lang.Object
|
+--anvil.server.Zone
- All Implemented Interfaces:
- Configurable
- Direct Known Subclasses:
- Domain
- public class Zone
- extends java.lang.Object
- implements Configurable
class Zone
| Fields inherited from interface anvil.server.Configurable |
ACCESS, APPLICATION, BIND, CLASSES, COMPILER, DOMAIN, HANDLERS, LISTENER, LOCALIZATION, LOGGING, MODULES, NAMESPACE, POLICY, POOL, REALM, SERVER, SESSION, SESSION_CONTAINER, ZONE |
|
Method Summary |
protected Zone |
accept(java.lang.String pathinfo,
int start)
|
PooledConnection |
acquireConnection(java.lang.String name)
|
protected java.lang.String[] |
analyzePathinfo(java.lang.String pathinfo)
|
boolean |
checkPermission(java.security.Permission perm)
|
boolean |
configure(Configurable configurable)
|
protected Container |
createContainer(java.lang.String container)
|
void |
deleteConfiguration(Configurable configurable)
|
protected boolean |
endsWith(java.lang.String path,
java.lang.String ext)
|
Reflection |
findJava(java.lang.String classname)
|
AccessPreferences |
getAccessPreferences()
|
RequestAdapterFactory |
getAdapterFactory()
|
java.lang.String[] |
getAdditionalPreferenceNames()
|
Address |
getAddress()
|
ApplicationPreferences |
getApplicationPreferences()
|
boolean |
getAssert()
|
Authorization |
getAuthorization()
|
java.lang.String |
getBasePath()
|
BindPreferences |
getBindPreferences()
|
ModuleEnvelope[] |
getCacheContents()
|
java.nio.charset.Charset |
getCharset()
|
java.lang.String |
getCharsetName()
|
Zone[] |
getChilds()
|
ZoneClassLoader |
getClassLoader()
|
protected java.security.PermissionCollection |
getCombinedPermissions()
|
CompilerPreferences |
getCompilerPreferences()
|
Configurable[] |
getConfigurations()
|
protected void |
getConfigurations(java.util.ArrayList v)
|
Container |
getContainer()
|
ContentHandler |
getContentHandler(java.lang.String type)
|
int |
getContentProcessing()
|
java.lang.String |
getContentType(java.lang.String extension)
|
boolean |
getDebug()
|
java.lang.String |
getDirectoryIndex()
|
java.lang.String |
getDispatcher()
|
Zone |
getDispatcherZone()
|
Domain |
getDomain()
|
java.lang.String |
getHostname()
|
LocalizationPreferences |
getLocalizationPreferences()
|
protected java.security.PermissionCollection |
getLocalPermissions()
|
LoggingPreferences |
getLoggingPreferences()
|
ConnectionManager |
getManager()
|
ConnectionManager |
getManagerFor(java.lang.String name)
|
ModulePreferences |
getModulePreferences()
|
Modules |
getModules()
|
java.lang.String |
getNamespace()
|
PersistentNamespace |
getNamespace(java.lang.String name)
|
Zone |
getParent()
|
java.lang.String |
getParentPath()
|
java.lang.String |
getPath()
|
java.lang.String |
getPathinfo()
|
java.util.regex.Pattern |
getPattern()
|
protected java.security.PermissionCollection |
getPermissions()
|
java.lang.Object |
getPreference(java.lang.String name)
|
java.lang.String[] |
getPreferences()
|
Realm |
getRealm(java.lang.String name)
|
RealmPreferences |
getRealmPreferences(java.lang.String name)
|
java.lang.String |
getRepositories()
|
Server |
getServer()
|
SessionContainer |
getSessionContainer()
|
SessionContainerPreferences |
getSessionContainerPreferences()
|
SessionPreferences |
getSessionPreferences()
|
int |
getType()
|
protected void |
initContainer(java.lang.String containers)
|
boolean |
isHidden()
|
boolean |
isStarted()
|
Log |
log()
|
java.lang.String |
mergePath(java.lang.String q)
|
java.lang.String |
mergePaths(java.lang.String p,
java.lang.String q)
|
boolean |
printPretty()
|
void |
purgeCache()
|
protected Context |
resolve(RequestAdapter adapter,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
Address |
resolve(java.lang.String path)
|
Context |
resolve(java.lang.String path,
boolean dispatch)
|
Zone |
resolveDomain(java.lang.String hostname)
|
Zone |
resolveZone(java.lang.String pathinfo)
|
protected Zone |
resolveZone(java.lang.String pathinfo,
int start)
|
void |
sendRedirect(RequestAdapter adapter,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
RedirectException exception)
|
void |
service(Context context)
|
void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
void |
setAssert(boolean enabled)
|
void |
setCharsetName(java.lang.String charsetname)
|
void |
setContainer(java.lang.String container)
|
void |
setContentProcessing(int state)
|
void |
setDebug(boolean enabled)
|
void |
setDirectoryIndex(java.lang.String index)
|
void |
setDispatcher(java.lang.String dispatcher)
|
void |
setHidden(boolean hidden)
|
void |
setNamespace(java.lang.String namespace)
|
void |
setParent(Zone parent)
|
void |
setPathinfo(java.lang.String pathinfo)
|
void |
setPattern(java.lang.String pattern)
|
boolean |
setPreference(java.lang.String name,
java.lang.String value)
|
void |
setPrintPretty(boolean pretty)
|
void |
setRepositories(java.lang.String repositories)
|
void |
setShouldInvalidate(boolean invalidate)
|
boolean |
shouldInvalidate()
|
void |
start()
|
void |
stop()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PREFERENCES
public static final java.lang.String[] PREFERENCES
_started
protected boolean _started
_parent
protected Zone _parent
_childs
protected Zone[] _childs
_container
protected java.lang.String _container
_charsetname
protected java.lang.String _charsetname
_dispatcher
protected java.lang.String _dispatcher
_pathinfo
protected java.lang.String _pathinfo
_pattern
protected java.util.regex.Pattern _pattern
_index
protected java.lang.String _index
_namespace
protected java.lang.String _namespace
_content
protected int _content
_repositories
protected java.lang.String _repositories
_hidden
protected java.lang.Boolean _hidden
_invalidate
protected java.lang.Boolean _invalidate
_pretty
protected java.lang.Boolean _pretty
_assert
protected java.lang.Boolean _assert
_debug
protected java.lang.Boolean _debug
_loggingprefs
protected LoggingPreferences _loggingprefs
_listenerprefs
protected ListenerPreferences _listenerprefs
_accessprefs
protected AccessPreferences _accessprefs
_sessionprefs
protected SessionPreferences _sessionprefs
_sessioncontainerprefs
protected SessionContainerPreferences _sessioncontainerprefs
_localizationprefs
protected LocalizationPreferences _localizationprefs
_compilerprefs
protected CompilerPreferences _compilerprefs
_moduleprefs
protected ModulePreferences _moduleprefs
_bindprefs
protected BindPreferences _bindprefs
_handlerprefs
protected HandlerPreferences _handlerprefs
_applicationprefs
protected ApplicationPreferences _applicationprefs
_policyprefs
protected PolicyPreferences _policyprefs
_namespacesprefs
protected java.util.List _namespacesprefs
_realmprefs
protected java.util.List _realmprefs
_pools
protected java.util.List _pools
_address
protected Address _address
_thecontainer
protected Container _thecontainer
_charset
protected java.nio.charset.Charset _charset
_log
protected Log _log
_listener
protected Listener _listener
_manager
protected ConnectionManager _manager
_sessioncontainer
protected SessionContainer _sessioncontainer
_modules
protected Modules _modules
_auth
protected Authorization _auth
_namespaces
protected java.util.Map _namespaces
_realms
protected java.util.Map _realms
_classloader
protected ZoneClassLoader _classloader
_combinedpermissions
protected java.security.PermissionCollection _combinedpermissions
_combinedpermissionscreated
protected boolean _combinedpermissionscreated
Zone
public Zone(Zone parent)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getAddress
public Address getAddress()
getServer
public Server getServer()
getAdapterFactory
public RequestAdapterFactory getAdapterFactory()
getManager
public ConnectionManager getManager()
acquireConnection
public PooledConnection acquireConnection(java.lang.String name)
throws NoConnectionPoolException,
CannotReturnPooledConnectionException
NoConnectionPoolException
CannotReturnPooledConnectionException
getManagerFor
public ConnectionManager getManagerFor(java.lang.String name)
throws NoConnectionPoolException
NoConnectionPoolException
getSessionContainer
public SessionContainer getSessionContainer()
getRealm
public Realm getRealm(java.lang.String name)
getAuthorization
public Authorization getAuthorization()
getNamespace
public PersistentNamespace getNamespace(java.lang.String name)
findJava
public Reflection findJava(java.lang.String classname)
getClassLoader
public ZoneClassLoader getClassLoader()
getLocalPermissions
protected java.security.PermissionCollection getLocalPermissions()
getPermissions
protected java.security.PermissionCollection getPermissions()
getCombinedPermissions
protected java.security.PermissionCollection getCombinedPermissions()
checkPermission
public final boolean checkPermission(java.security.Permission perm)
getParent
public Zone getParent()
- Specified by:
getParent in interface Configurable
setParent
public void setParent(Zone parent)
getDomain
public Domain getDomain()
getHostname
public java.lang.String getHostname()
getPattern
public java.util.regex.Pattern getPattern()
getChilds
public Zone[] getChilds()
log
public Log log()
setContainer
public void setContainer(java.lang.String container)
initContainer
protected void initContainer(java.lang.String containers)
endsWith
protected boolean endsWith(java.lang.String path,
java.lang.String ext)
createContainer
protected Container createContainer(java.lang.String container)
getContainer
public Container getContainer()
getDispatcher
public java.lang.String getDispatcher()
getDispatcherZone
public Zone getDispatcherZone()
setDispatcher
public void setDispatcher(java.lang.String dispatcher)
setPathinfo
public void setPathinfo(java.lang.String pathinfo)
setPattern
public void setPattern(java.lang.String pattern)
mergePaths
public java.lang.String mergePaths(java.lang.String p,
java.lang.String q)
mergePath
public java.lang.String mergePath(java.lang.String q)
getPathinfo
public java.lang.String getPathinfo()
getPath
public java.lang.String getPath()
getParentPath
public java.lang.String getParentPath()
getBasePath
public java.lang.String getBasePath()
setDirectoryIndex
public void setDirectoryIndex(java.lang.String index)
getDirectoryIndex
public java.lang.String getDirectoryIndex()
setNamespace
public void setNamespace(java.lang.String namespace)
getNamespace
public java.lang.String getNamespace()
setCharsetName
public void setCharsetName(java.lang.String charsetname)
getCharsetName
public java.lang.String getCharsetName()
getCharset
public java.nio.charset.Charset getCharset()
getContentProcessing
public int getContentProcessing()
setContentProcessing
public void setContentProcessing(int state)
setRepositories
public void setRepositories(java.lang.String repositories)
getRepositories
public java.lang.String getRepositories()
setHidden
public void setHidden(boolean hidden)
isHidden
public boolean isHidden()
setShouldInvalidate
public void setShouldInvalidate(boolean invalidate)
shouldInvalidate
public boolean shouldInvalidate()
setPrintPretty
public void setPrintPretty(boolean pretty)
printPretty
public boolean printPretty()
setAssert
public void setAssert(boolean enabled)
getAssert
public boolean getAssert()
setDebug
public void setDebug(boolean enabled)
getDebug
public boolean getDebug()
getLoggingPreferences
public LoggingPreferences getLoggingPreferences()
getAccessPreferences
public AccessPreferences getAccessPreferences()
getRealmPreferences
public RealmPreferences getRealmPreferences(java.lang.String name)
getSessionPreferences
public SessionPreferences getSessionPreferences()
getSessionContainerPreferences
public SessionContainerPreferences getSessionContainerPreferences()
getLocalizationPreferences
public LocalizationPreferences getLocalizationPreferences()
getCompilerPreferences
public CompilerPreferences getCompilerPreferences()
getBindPreferences
public BindPreferences getBindPreferences()
getModulePreferences
public ModulePreferences getModulePreferences()
getApplicationPreferences
public ApplicationPreferences getApplicationPreferences()
getModules
public Modules getModules()
getType
public int getType()
- Specified by:
getType in interface Configurable
getPreferences
public java.lang.String[] getPreferences()
- Specified by:
getPreferences in interface Configurable
getAdditionalPreferenceNames
public java.lang.String[] getAdditionalPreferenceNames()
- Specified by:
getAdditionalPreferenceNames in interface Configurable
getPreference
public java.lang.Object getPreference(java.lang.String name)
- Specified by:
getPreference in interface Configurable
setPreference
public boolean setPreference(java.lang.String name,
java.lang.String value)
- Specified by:
setPreference in interface Configurable
deleteConfiguration
public void deleteConfiguration(Configurable configurable)
- Specified by:
deleteConfiguration in interface Configurable
getConfigurations
protected void getConfigurations(java.util.ArrayList v)
getConfigurations
public Configurable[] getConfigurations()
- Specified by:
getConfigurations in interface Configurable
configure
public boolean configure(Configurable configurable)
- Specified by:
configure in interface Configurable
getCacheContents
public ModuleEnvelope[] getCacheContents()
purgeCache
public void purgeCache()
isStarted
public boolean isStarted()
start
public void start()
stop
public void stop()
getContentType
public java.lang.String getContentType(java.lang.String extension)
getContentHandler
public ContentHandler getContentHandler(java.lang.String type)
resolveDomain
public Zone resolveDomain(java.lang.String hostname)
accept
protected Zone accept(java.lang.String pathinfo,
int start)
resolveZone
protected Zone resolveZone(java.lang.String pathinfo,
int start)
resolveZone
public Zone resolveZone(java.lang.String pathinfo)
resolve
public Context resolve(java.lang.String path,
boolean dispatch)
throws RedirectException,
ZoneInactiveException
RedirectException
ZoneInactiveException
resolve
public Address resolve(java.lang.String path)
throws ZoneInactiveException
ZoneInactiveException
analyzePathinfo
protected java.lang.String[] analyzePathinfo(java.lang.String pathinfo)
resolve
protected Context resolve(RequestAdapter adapter,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws ZoneInactiveException,
RedirectException
ZoneInactiveException
RedirectException
sendRedirect
public void sendRedirect(RequestAdapter adapter,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
RedirectException exception)
throws java.io.IOException
java.io.IOException
service
public void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
service
public void service(Context context)
throws java.lang.Exception
java.lang.Exception