|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.barracudamvc.core.util.dom.CommaSeparatedDOMWriter
public class CommaSeparatedDOMWriter
Field Summary | |
---|---|
protected String |
contentDisposition
|
protected String |
contentType
|
static String |
DOCUMENT_TYPE
|
static String |
ELEMENT_COLUMN
|
static String |
ELEMENT_DIV
|
static String |
ELEMENT_HEADER
|
static String |
ELEMENT_ROW
|
static String |
ELEMENT_SPAN
|
static String |
eol
|
protected boolean |
leaveWriterOpen
|
protected int |
maxAge
|
protected boolean |
preventCaching
|
Constructor Summary | |
---|---|
CommaSeparatedDOMWriter()
Create a new CommaSeparatedDOMWriter using the default values. |
|
CommaSeparatedDOMWriter(String icontentType,
String icontentDisposition)
Create a new CommaSeparatedDOMWriter with the supplied values. |
Method Summary | |
---|---|
String |
getContentDisposition()
Get the content disposition |
String |
getContentType()
Get the content type |
boolean |
getLeaveWriterOpen()
Return true if the writer is configured to leave the output stream open |
void |
prepareResponse(Node node,
javax.servlet.http.HttpServletResponse resp)
Prepare the response object |
void |
setContentDisposition(String icontentDisposition)
Set the content disposition (ie. |
void |
setContentType(String icontentType)
Set the content type (defaults to "text/html" or "text/xml" depending on the document type |
void |
setLeaveWriterOpen(boolean val)
Set whether or not to leave the writer open after writing |
void |
write(Node node,
javax.servlet.http.HttpServletResponse resp)
Write a DOM to a ServletResponse object. |
void |
write(Node node,
OutputStream out)
Write a DOM to an OutputStream. |
void |
write(Node node,
Writer writer)
Write a DOM to a Writer. |
protected void |
writeAll(NodeList nodes,
Writer writer)
|
protected void |
writeColumn(Node parent,
NodeList nodes,
Writer writer)
|
protected void |
writeHeader(Node parent,
NodeList nodes,
Writer writer)
|
protected void |
writeNode(Node node,
Writer writer)
|
protected void |
writeRow(Node parent,
NodeList nodes,
Writer writer)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String eol
public static final String DOCUMENT_TYPE
public static final String ELEMENT_ROW
public static final String ELEMENT_HEADER
public static final String ELEMENT_COLUMN
public static final String ELEMENT_SPAN
public static final String ELEMENT_DIV
protected String contentType
protected String contentDisposition
protected boolean preventCaching
protected boolean leaveWriterOpen
protected int maxAge
Constructor Detail |
---|
public CommaSeparatedDOMWriter()
public CommaSeparatedDOMWriter(String icontentType, String icontentDisposition)
icontentType
- The content type to useicontentDisposition
- The content disposition to useMethod Detail |
---|
public void setContentType(String icontentType)
public String getContentType()
public void setContentDisposition(String icontentDisposition)
public String getContentDisposition()
public void setLeaveWriterOpen(boolean val)
setLeaveWriterOpen
in interface DOMWriter
public boolean getLeaveWriterOpen()
getLeaveWriterOpen
in interface DOMWriter
public void prepareResponse(Node node, javax.servlet.http.HttpServletResponse resp) throws IOException
prepareResponse
in interface DOMWriter
node
- the DOM node to be written outresp
- the HttpServletResponse object
IOException
public void write(Node node, javax.servlet.http.HttpServletResponse resp) throws IOException
write
in interface DOMWriter
node
- The DOM node to be written outresp
- The HttpServletResponse object to write to
IOException
public void write(Node node, OutputStream out) throws IOException
write
in interface DOMWriter
node
- The DOM node to be written outout
- The OutputStream to be written to
IOException
public void write(Node node, Writer writer) throws IOException
write
in interface DOMWriter
node
- The DOM node to be written outwriter
- The writer to be written to
IOException
protected void writeNode(Node node, Writer writer) throws IOException, DOMException
IOException
DOMException
protected void writeAll(NodeList nodes, Writer writer) throws IOException, DOMException
IOException
DOMException
protected void writeRow(Node parent, NodeList nodes, Writer writer) throws IOException, DOMException
IOException
DOMException
protected void writeHeader(Node parent, NodeList nodes, Writer writer) throws IOException, DOMException
IOException
DOMException
protected void writeColumn(Node parent, NodeList nodes, Writer writer) throws IOException, DOMException
IOException
DOMException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |