|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.loom.resolution.AbstractHttpResolution
org.loom.resolution.HtmlResolution
public class HtmlResolution
A Resolution class to compose HTML by hand.
Constructor Summary | |
---|---|
HtmlResolution()
|
Method Summary | |
---|---|
HtmlResolution |
end(java.lang.String tag)
|
HtmlResolution |
endJavascript()
Write a javascript end tag |
java.lang.String |
getContents()
|
StringWriterWrapper |
getWriterWrapper()
|
HtmlResolution |
print(java.lang.CharSequence seq)
Print text |
HtmlResolution |
printAttribute(java.lang.String name,
java.lang.Object value)
Print an attribute, if its value is not null. |
HtmlResolution |
printHiddenField(java.lang.String name,
java.lang.String value)
Print a input type="hidden" field |
void |
resolve(LoomServletRequest request,
LoomServletResponse response)
Write the response contents |
HtmlResolution |
start(java.lang.String tag,
java.lang.Object... attributes)
|
HtmlResolution |
startEnd(java.lang.String tag,
java.lang.Object... attributes)
|
HtmlResolution |
startJavascript()
Write a javascript start tag |
Methods inherited from class org.loom.resolution.AbstractHttpResolution |
---|
addCookie, addCookie, addCookie, addDateHeader, addHeader, addIntHeader, containsHeader, getCacheControl, getCharset, getContentType, setCacheControl, setCharset, setContentType, setDateHeader, setDateHeaderIfNotPresent, setHeader, setHeaderIfNotPresent, setIntHeader, setIntHeaderIfNotPresent, setJsonHeader, writeHeaders |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HtmlResolution()
Method Detail |
---|
public void resolve(LoomServletRequest request, LoomServletResponse response) throws java.io.IOException, javax.servlet.ServletException
Resolution
resolve
in interface Resolution
resolve
in class AbstractHttpResolution
request
- the current request objectresponse
- the current response object
java.io.IOException
javax.servlet.ServletException
public HtmlResolution print(java.lang.CharSequence seq) throws java.io.IOException
seq
- the text to print
java.io.IOException
public HtmlResolution printAttribute(java.lang.String name, java.lang.Object value) throws java.io.IOException
name
- the name of the attributevalue
- the value of the attribute that will be printed (invoking toString())
java.io.IOException
public HtmlResolution printHiddenField(java.lang.String name, java.lang.String value) throws java.io.IOException
name
- the name of the fieldvalue
- the value that will be printed (invoking toString())
java.io.IOException
public HtmlResolution startJavascript() throws java.io.IOException
java.io.IOException
public HtmlResolution endJavascript() throws java.io.IOException
java.io.IOException
public HtmlResolution start(java.lang.String tag, java.lang.Object... attributes) throws java.io.IOException
java.io.IOException
WriterWrapper.start(String, Object...)
public HtmlResolution startEnd(java.lang.String tag, java.lang.Object... attributes) throws java.io.IOException
java.io.IOException
WriterWrapper.startEnd(String, Object...)
public HtmlResolution end(java.lang.String tag) throws java.io.IOException
java.io.IOException
WriterWrapper.end(String)
public java.lang.String getContents()
public StringWriterWrapper getWriterWrapper()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |