|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.Writer
javax.faces.context.ResponseWriter
org.apache.shale.test.mock.MockResponseWriter
public class MockResponseWriter
Mock implementation of javax.faces.context.ResponseWriter
.
Field Summary |
---|
Fields inherited from class java.io.Writer |
---|
lock |
Constructor Summary | |
---|---|
MockResponseWriter(java.io.Writer writer,
java.lang.String contentType,
java.lang.String characterEncoding)
Construct an instance wrapping the specified writer. |
Method Summary | |
---|---|
javax.faces.context.ResponseWriter |
cloneWithWriter(java.io.Writer writer)
|
void |
close()
|
void |
endDocument()
|
void |
endElement(java.lang.String name)
|
void |
flush()
|
java.lang.String |
getCharacterEncoding()
|
java.lang.String |
getContentType()
|
java.io.Writer |
getWriter()
Return the Writer that we are wrapping. |
void |
startDocument()
|
void |
startElement(java.lang.String name,
javax.faces.component.UIComponent component)
|
void |
write(char[] cbuf,
int off,
int len)
|
void |
writeAttribute(java.lang.String name,
java.lang.Object value,
java.lang.String property)
|
void |
writeComment(java.lang.Object comment)
|
void |
writeText(char[] text,
int off,
int len)
|
void |
writeText(java.lang.Object text,
java.lang.String property)
|
void |
writeURIAttribute(java.lang.String name,
java.lang.Object value,
java.lang.String property)
|
Methods inherited from class javax.faces.context.ResponseWriter |
---|
writeText |
Methods inherited from class java.io.Writer |
---|
append, append, append, write, write, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MockResponseWriter(java.io.Writer writer, java.lang.String contentType, java.lang.String characterEncoding)
Construct an instance wrapping the specified writer.
writer
- Writer we are wrappingcontentType
- Content type to be createdcharacterEncoding
- Character encoding of this responseMethod Detail |
---|
public java.io.Writer getWriter()
Return the Writer
that we are wrapping.
public javax.faces.context.ResponseWriter cloneWithWriter(java.io.Writer writer)
cloneWithWriter
in class javax.faces.context.ResponseWriter
public void endDocument() throws java.io.IOException
endDocument
in class javax.faces.context.ResponseWriter
java.io.IOException
public void endElement(java.lang.String name) throws java.io.IOException
endElement
in class javax.faces.context.ResponseWriter
java.io.IOException
public java.lang.String getCharacterEncoding()
getCharacterEncoding
in class javax.faces.context.ResponseWriter
public java.lang.String getContentType()
getContentType
in class javax.faces.context.ResponseWriter
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class javax.faces.context.ResponseWriter
java.io.IOException
public void startDocument() throws java.io.IOException
startDocument
in class javax.faces.context.ResponseWriter
java.io.IOException
public void startElement(java.lang.String name, javax.faces.component.UIComponent component) throws java.io.IOException
startElement
in class javax.faces.context.ResponseWriter
java.io.IOException
public void writeAttribute(java.lang.String name, java.lang.Object value, java.lang.String property) throws java.io.IOException
writeAttribute
in class javax.faces.context.ResponseWriter
java.io.IOException
public void writeComment(java.lang.Object comment) throws java.io.IOException
writeComment
in class javax.faces.context.ResponseWriter
java.io.IOException
public void writeText(java.lang.Object text, java.lang.String property) throws java.io.IOException
writeText
in class javax.faces.context.ResponseWriter
java.io.IOException
public void writeText(char[] text, int off, int len) throws java.io.IOException
writeText
in class javax.faces.context.ResponseWriter
java.io.IOException
public void writeURIAttribute(java.lang.String name, java.lang.Object value, java.lang.String property) throws java.io.IOException
writeURIAttribute
in class javax.faces.context.ResponseWriter
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.Writer
java.io.IOException
public void write(char[] cbuf, int off, int len) throws java.io.IOException
write
in class java.io.Writer
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |