|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.xmlserv.main.BackendHandle
This class is used to represent the Backend entries in /WEB-INF/config.xml
at runtime.
Note: The client attribute of the stylesheet element currently
does not accept regular expressions.
Constructor Summary | |
BackendHandle()
Create empty object with default SecurityManager. |
|
BackendHandle(java.lang.String name)
Create object with the given name and a default SecurityManager. |
Method Summary | |
void |
addParam(java.lang.String paramname,
java.lang.String paramvalue)
|
void |
addStylesheetByClient(java.lang.String client,
java.lang.String stylesheet)
Add stylesheet by client mapping. |
void |
addStylesheetByRoleGroup(java.lang.String rolegroup,
java.lang.String stylesheet)
Add stylesheet by rolegroup mapping. |
void |
addStylesheetByType(java.lang.String mimetype,
java.lang.String stylesheet)
Add stylesheet by mimetype mapping. |
void |
destroy()
Destroy backend object by calling its destroy() method. |
void |
dump(java.io.PrintStream out)
Write this BackendHandle to the given Stream in text format. |
boolean |
getBinary()
Return binary output status. |
java.lang.String |
getClassname()
Get the classname. |
java.lang.String |
getDefaultStylesheet()
Return default stylesheet. |
XMLServBackend |
getInstance()
Get an instance of this backend. |
java.lang.String |
getName()
Get current name attribute value. |
boolean |
getPostprocess()
Is Postprocessing by a ContentManager allowed? |
SecurityManager |
getSecurityManager()
Return securitymanager for this backend. |
java.lang.String |
getStatus()
Get a String representation of the current status of this Backend. |
java.lang.String |
getStylesheetByClient(java.lang.String client)
Get a client specific stylesheet. |
java.lang.String |
getStylesheetByRoleGroup(java.lang.String rolegroup)
Get stylesheet by rolegroup. |
java.lang.String |
getStylesheetByType(java.lang.String mimetype)
Get stylesheet by MIME type. |
java.lang.String |
getUrl()
Get current url attribute value. |
void |
setBinary(boolean binary)
Use to indicate whether this returns binary data. |
void |
setClassname(java.lang.String classname)
Set the classname attribute, validating the class by instantiating it. |
void |
setDefaultStylesheet(java.lang.String stylesheet)
The default Stylesheet. |
void |
setName(java.lang.String name)
Set name attribute. |
void |
setPostprocess(boolean postprocess)
Set postprocessing option. |
void |
setSecurityManager(SecurityManager securitymanager)
Set a securitymanager. |
void |
setUrl(java.lang.String url)
Set the URL attribute, replacing a null value with an empty String. |
void |
validate()
Ensure integrity by checking for valid settings of various attributes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BackendHandle() throws XMLServException
public BackendHandle(java.lang.String name) throws XMLServException
Method Detail |
public void destroy()
public java.lang.String getStatus()
public void setName(java.lang.String name)
name
- New value for name attribute.public java.lang.String getName()
public void setUrl(java.lang.String url)
url
- New value for URL attribute.public java.lang.String getUrl()
public void setClassname(java.lang.String classname) throws java.lang.InstantiationException, java.lang.ClassNotFoundException, java.lang.IllegalAccessException, javax.servlet.ServletException
classname
- The fully qualified classname for this Backend or null to reset.java.lang.InstantiationException
- The class could not be loaded.java.lang.ClassNotFoundException
- The class could not be loaded.javax.servlet.ServletException
- Class initialization failed.public java.lang.String getClassname()
public XMLServBackend getInstance()
public void setDefaultStylesheet(java.lang.String stylesheet)
stylesheet
- The filename of the stylesheet or null (will be replaced by
'stylesheet.xsl')public java.lang.String getDefaultStylesheet()
public void addStylesheetByClient(java.lang.String client, java.lang.String stylesheet)
client
- The client identification string.stylesheet
- The filename of the stylesheet to use for this client.public java.lang.String getStylesheetByClient(java.lang.String client)
public void addStylesheetByType(java.lang.String mimetype, java.lang.String stylesheet)
mimetype
- The MIME Type string.stylesheet
- The filename of the stylesheet.public void addStylesheetByRoleGroup(java.lang.String rolegroup, java.lang.String stylesheet)
rolegroup
- The MIME Type string.stylesheet
- The filename of the stylesheet.public java.lang.String getStylesheetByType(java.lang.String mimetype)
public java.lang.String getStylesheetByRoleGroup(java.lang.String rolegroup)
public void setSecurityManager(SecurityManager securitymanager)
securitymanager
- The SecurityManager instance to use.public SecurityManager getSecurityManager()
public void setBinary(boolean binary)
public boolean getBinary()
public boolean getPostprocess()
public void setPostprocess(boolean postprocess)
public void addParam(java.lang.String paramname, java.lang.String paramvalue)
public void validate() throws XMLServException
XMLServException
- if this object is not in a usable state.public void dump(java.io.PrintStream out)
out
- The PrintStream to write output to.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |