java.lang.Object
|
+--stec.iws.ServletManager
public class ServletManager
Methods used to access the iServer Servlet Manager.
Methods
Method
|
Description
|
isRealmLoaded
|
Returns whether the specified Realm is loaded.
|
isServletLoaded
|
Returns whether the specified Servlet is loaded.
|
loadRealm
|
Used to load the specified Realm alias.
|
loadServlet
|
Used to load the specified Servlet alias.
|
unloadRealm
|
Used to unload the specified Realm alias.
|
unloadServlet
|
Used to unload the specified Servlet alias.
|
isRealmLoaded
Returns whether the specified Realm is loaded.
Syntax
public boolean isRealmLoaded(String alias) throws Exception
Parameters
alias
|
an existing Realm alias.
|
Returns
boolean
|
whether the specified Realm is loaded.
|
Throws
Example
iws.servletManager.isRealmLoaded("default");
isServletLoaded
Returns whether the specified Servlet is loaded.
Syntax
public boolean isServletLoaded(String alias) throws Exception
Parameters
alias
|
an existing Servlet alias.
|
Returns
boolean
|
whether the specified Servlet is loaded.
|
Throws
Example
iws.servletManager.isServletLoaded("FileServlet");
loadRealm
Used to load the specified Realm alias.
Syntax
public stec.iws.ServletContextImpl loadRealm(String alias) throws Exception
Parameters
alias
|
an existing Realm alias.
|
Returns
ServletContextImpl
|
context to the loaded Realm.
|
Throws
Exception
|
if any errors occurs.
|
Example
iws.servletManager.loadRealm("default");
loadServlet
Used to load the specified Servlet alias.
Syntax
public stec.iws.ServletContextImpl loadServlet(String alias) throws Exception
Parameters
alias
|
an existing Servlet alias.
|
Returns
ServletContextImpl
|
context to the loaded Servlet.
|
Throws
Exception
|
if any errors occurs.
|
Example
iws.servletManager.loadServlet("FileServlet");
unloadRealm
Used to unload the specified Realm alias.
Syntax
public void loadRealm(String alias) throws Exception
Parameters
alias
|
an existing Realm alias.
|
Returns
Throws
Exception
|
if any errors occurs.
|
Example
iws.servletManager.unloadRealm("default");
unloadServlet
Used to unload the specified Servlet alias.
Syntax
public void loadServlet(String alias) throws Exception
Parameters
alias
|
an existing Servlet alias.
|
Returns
Throws
Exception
|
if any errors occurs.
|
Example
iws.servletManager.unloadServlet("FileServlet");
|