|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.pbemengine.engine.ng.base.webserver.PrintContent
public class PrintContent
A simple general-purpose implementation of the Content class, useful for displaying text-files such as HTML, XML or CSS files
| Constructor Summary | |
|---|---|
PrintContent(java.lang.String mime)
Creates a new PrintContent |
|
| Method Summary | |
|---|---|
java.util.Map<java.lang.String,java.lang.String> |
getCookies()
Returns any cookies that should be set |
java.lang.String |
getMIMEType()
Returns the MIME type for this content |
java.lang.String |
getPage()
Returns the Page that this Content encapsulates |
byte[] |
getRawContent()
Returns a RAW version of the content |
java.lang.String |
getReRouteAddr()
Returns the page name this Content should re-route to, if any |
boolean |
isReadAble()
Determines whether or not this type of content is readable |
void |
printAll(java.util.Collection<java.lang.String> data)
Adds a collection of strings to the current content |
void |
printAll(java.lang.StringBuffer data)
|
void |
println(java.lang.String text)
Adds a line of text to the current content |
void |
setCookies(java.util.Map<java.lang.String,java.lang.String> cookies)
Sets the cookies for this PrintContent object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PrintContent(java.lang.String mime)
mime - The MIME-type for this page| Method Detail |
|---|
public boolean isReadAble()
true if this content is readable, false if it should
re-route to another pagepublic java.lang.String getReRouteAddr()
public java.lang.String getPage()
getPage in interface Contentpublic void println(java.lang.String text)
text - The line to addpublic void printAll(java.util.Collection<java.lang.String> data)
data - The Collection to addpublic void printAll(java.lang.StringBuffer data)
public java.lang.String getMIMEType()
getMIMEType in interface Contentpublic java.util.Map<java.lang.String,java.lang.String> getCookies()
getCookies in interface Contentpublic void setCookies(java.util.Map<java.lang.String,java.lang.String> cookies)
cookies - The map of cookiespublic byte[] getRawContent()
Content
getRawContent in interface Content
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||