|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.webhydra.slug.process.AbstractSlugService
com.webhydra.slug.process.AbstractProcessStatusTranslator
com.webhydra.slug.process.xml.AbstractXmlProcessStatusTranslator
public abstract class AbstractXmlProcessStatusTranslator
Abstract XML ProcessStatus Translator
| Field Summary | |
|---|---|
static java.lang.String |
PARAM_USE_DOC_DEF
Instantiation parameter specifing will document docType definitions |
| Fields inherited from class com.webhydra.slug.process.AbstractProcessStatusTranslator |
|---|
contentType |
| Fields inherited from class com.webhydra.slug.process.AbstractSlugService |
|---|
setup |
| Constructor Summary | |
|---|---|
protected |
AbstractXmlProcessStatusTranslator()
Default constructor |
| Method Summary | |
|---|---|
java.lang.String |
getClassDef()
Generate class definition. |
protected abstract java.lang.String |
getDocType()
Retruns one the supported document types XML_TYPE_DTD or XML_TYPE_XSD. |
void |
init(java.util.Map setup)
Overrides the default implelemntation. |
void |
prepare()
Load document type definition. |
protected boolean |
shouldUseDocType()
Getter for the useDocType propertie. |
protected java.lang.String |
xmlEscape(java.lang.String str)
Escape & < and > characters. |
| Methods inherited from class com.webhydra.slug.process.AbstractProcessStatusTranslator |
|---|
getContentType, setContentType |
| Methods inherited from class com.webhydra.slug.process.AbstractSlugService |
|---|
getParams, release |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.webhydra.slug.process.IProcessStatusTranslator |
|---|
getContentType, translate |
| Methods inherited from interface com.webhydra.slug.process.ISlugService |
|---|
release |
| Field Detail |
|---|
public static final java.lang.String PARAM_USE_DOC_DEF
| Constructor Detail |
|---|
protected AbstractXmlProcessStatusTranslator()
| Method Detail |
|---|
protected boolean shouldUseDocType()
protected abstract java.lang.String getDocType()
public void prepare()
throws SlugInitializationException
prepare in interface ISlugServiceprepare in class AbstractSlugServiceSlugInitializationException - if IOException is encounted during
Document Type loading.
public void init(java.util.Map setup)
throws SlugInitializationException
useDocType to true if PARAM_USE_DOC_DEF is
present as a key in the setup parameters.
init in interface ISlugServiceinit in class AbstractSlugServicesetup - map with setup parameters.
SlugInitializationException - not thrownpublic java.lang.String getClassDef()
getClassDef in interface IProcessStatusTranslatorprotected java.lang.String xmlEscape(java.lang.String str)
str - string to be escaped.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||