| 
deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.enterprise.control.ajax.ResponseHandler
public class ResponseHandler
| Constructor Summary | |
|---|---|
ResponseHandler(javax.servlet.http.HttpServletResponse response)
 | 
|
| Method Summary | |
|---|---|
 javax.servlet.http.HttpServletResponse | 
getHttpServletResponse()
 | 
 void | 
setContentLength(int length)
sets content length  | 
 void | 
setContentType(String contentType)
sets content type  | 
 void | 
setLocale(Locale locale)
sets locale/character encoding  | 
(package private)  void | 
setXSLT(XSLTDocument xslt)
sets an xslt script that will be used if a XML document will be written; - writeAndClose(XMLFragment) | 
 void | 
writeAndClose(boolean emitClassName,
                           Object value)
'application/json; charset=$deafultCharset$' will be used as default if no content-type has been set.  | 
 void | 
writeAndClose(String value)
write a string result back to the client and closes the output stream.  | 
 void | 
writeAndClose(XMLFragment value)
write a XML result back to the client (if a xslt script has been set the document will be transformed first) and closes the output stream.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
ResponseHandler(javax.servlet.http.HttpServletResponse response)
response - | Method Detail | 
|---|
public void setContentType(String contentType)
contentType - public void setLocale(Locale locale)
locale - public void setContentLength(int length)
length - void setXSLT(XSLTDocument xslt)
writeAndClose(XMLFragment)
xslt - 
public void writeAndClose(String value)
                   throws IOException
value - 
IOException
public void writeAndClose(XMLFragment value)
                   throws IOException
value - 
IOException
public void writeAndClose(boolean emitClassName,
                          Object value)
                   throws IOException
emitClassName - value - 
IOExceptionpublic javax.servlet.http.HttpServletResponse getHttpServletResponse()
  | 
deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
an open source project founded by lat/lon, Bonn, Germany.
                    For more information visit: http://www.deegree.org