|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--arlut.csd.ganymede.XMLDumpContext
This class is used on the server to group parameters that will guide the server in doing an XML dump.
| Field Summary | |
(package private) boolean |
dumpCreatorModifierInfo
If true, the Ganymede server thread using this XMLDumpContext will include the four standard history fields for each object in the emitted XML file. |
(package private) boolean |
dumpPlaintextPasswords
If true, the Ganymede server thread using this XMLDumpContext will include plaintext passwords to the emitted XML file whenever possible |
(package private) int |
indentLevel
|
(package private) com.jclark.xml.output.XMLWriter |
xmlOut
|
| Constructor Summary | |
XMLDumpContext(com.jclark.xml.output.XMLWriter xmlOut,
boolean passwords,
boolean historyInfo)
Main constructor |
|
| Method Summary | |
void |
attribute(java.lang.String name,
java.lang.String value)
Writes an attribute. |
void |
cdataSection(java.lang.String content)
Writes a CDATA section. |
void |
characterReference(int n)
Writes a character reference. |
void |
close()
|
void |
comment(java.lang.String body)
Writes a comment. |
boolean |
doDumpHistoryInfo()
Returns true if this XMLDumpContext is configured to dump creation and modification information when writing out object records. |
boolean |
doDumpPlaintext()
Returns true if this XMLDumpContext is configured to dump plaintext password information to disk when a password field has enough information in crypt() or md5Crypt() form that the Ganymede server would be able to load and authenticate against a non-plaintext version of the password. |
void |
endAttribute()
Ends an attribute. |
void |
endElement(java.lang.String name)
Ends an element. |
void |
endElementIndent(java.lang.String name)
Ends an element, indenting before emitting the end tag. |
void |
endReplacementText()
Ends the replacement text for an internal entity. |
void |
entityReference(boolean isParam,
java.lang.String name)
Writes an entity reference. |
int |
getIndent()
Returns the current indentation level. |
com.jclark.xml.output.XMLWriter |
getWriter()
|
void |
indent()
|
void |
indentIn()
Decreases the indent level one step. |
void |
indentOut()
Increase the indent level one step. |
void |
markup(java.lang.String str)
Writes markup. |
void |
processingInstruction(java.lang.String target,
java.lang.String data)
Writes a processing instruction. |
void |
setIndentLevel(int x)
This method directly sets the indention level for subsequent indent(), startElementIndent(), and endElementIndent() calls. |
void |
skipLine()
|
void |
startAttribute(java.lang.String name)
Starts an attribute. |
void |
startElement(java.lang.String name)
Starts an element. |
void |
startElementIndent(java.lang.String name)
Starts an element, indented according to the current indent level. |
void |
startReplacementText()
Starts the replacement text for an internal entity. |
void |
write(java.lang.String str)
|
com.jclark.xml.output.XMLWriter |
writer()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
boolean dumpPlaintextPasswords
If true, the Ganymede server thread using this XMLDumpContext will include plaintext passwords to the emitted XML file whenever possible
boolean dumpCreatorModifierInfo
If true, the Ganymede server thread using this XMLDumpContext will include the four standard history fields for each object in the emitted XML file.
com.jclark.xml.output.XMLWriter xmlOut
int indentLevel
| Constructor Detail |
public XMLDumpContext(com.jclark.xml.output.XMLWriter xmlOut,
boolean passwords,
boolean historyInfo)
Main constructor
xmlOut - The XMLWriter to write topasswords - Include plaintext passwords in password field dumps,
even if the password field includes UNIX crypt() or md5Crypt() passwords
that could be depended on for authentication without having to reveal
the plaintext.historyInfo - If true, all objects dumped out using this XMLDumpContext
will include creator and modification information.| Method Detail |
public com.jclark.xml.output.XMLWriter getWriter()
public com.jclark.xml.output.XMLWriter writer()
public void indentOut()
Increase the indent level one step. Successive indent(), startElementIndent(), and endElementIndent() method calls will indent one level further.
This method itself produces no output.
public void indentIn()
Decreases the indent level one step. Successive indent(), startElementIndent(), and endElementIndent() method calls will decrease one level fiewer.
This method itself produces no output.
public void setIndentLevel(int x)
This method directly sets the indention level for subsequent indent(), startElementIndent(), and endElementIndent() calls.
public int getIndent()
Returns the current indentation level.
public void indent()
throws java.io.IOException
java.io.IOException
public void skipLine()
throws java.io.IOException
java.io.IOExceptionpublic boolean doDumpPlaintext()
Returns true if this XMLDumpContext is configured to dump plaintext password information to disk when a password field has enough information in crypt() or md5Crypt() form that the Ganymede server would be able to load and authenticate against a non-plaintext version of the password.
public boolean doDumpHistoryInfo()
Returns true if this XMLDumpContext is configured to dump creation and modification information when writing out object records.
public void startElementIndent(java.lang.String name)
throws java.io.IOException
attribute.
The start-tag will be closed by the first following call to any method
other than attribute.
java.io.IOException
public void startElement(java.lang.String name)
throws java.io.IOException
attribute.
The start-tag will be closed by the first following call to any method
other than attribute.
java.io.IOException
public void attribute(java.lang.String name,
java.lang.String value)
throws java.io.IOException
attribute since the last call to startElement,
unless inside a startAttribute, endAttribute
pair.
java.io.IOException
public void startAttribute(java.lang.String name)
throws java.io.IOException
= and the opening
quote.
This provides an alternative to attribute
that allows markup to be included in the attribute value.
The value of the attribute is written using the normal
write methods;
endAttribute must be called at the end
of the attribute value.
Entity and character references can be written using
entityReference and characterReference.
java.io.IOException
public void endAttribute()
throws java.io.IOException
java.io.IOException
public void endElementIndent(java.lang.String name)
throws java.io.IOException
java.io.IOException
public void endElement(java.lang.String name)
throws java.io.IOException
java.io.IOException
public void processingInstruction(java.lang.String target,
java.lang.String data)
throws java.io.IOException
data is non-empty a space will be inserted automatically
to separate it from the target.
java.io.IOException
public void comment(java.lang.String body)
throws java.io.IOException
java.io.IOException
public void entityReference(boolean isParam,
java.lang.String name)
throws java.io.IOException
java.io.IOException
public void characterReference(int n)
throws java.io.IOException
java.io.IOException
public void cdataSection(java.lang.String content)
throws java.io.IOException
java.io.IOException
public void startReplacementText()
throws java.io.IOException
endReplacementText.
This enables an extra level of escaping that protects
against the process of constructing an entity's replacement
text from the literal entity value.
See Section 4.5 of the XML Recommendation.
Between a call to startReplacementText
and endReplacementText, the argument to
markup would specify entity replacement text;
these would be escaped so that when processed as
a literal entity value, the specified entity replacement text
would be constructed.
This call does not itself cause anything to be written.
java.io.IOException
public void endReplacementText()
throws java.io.IOException
startReplacementText.
This call does not itself cause anything to be written.
java.io.IOException
public void markup(java.lang.String str)
throws java.io.IOException
startReplacementText).
java.io.IOException
public void write(java.lang.String str)
throws java.io.IOException
java.io.IOException
public void close()
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||