Java Doc for Responder.java in  » Ajax » Laszlo-4.0.10 » org » openlaszlo » servlets » responders » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Ajax » Laszlo 4.0.10 » org.openlaszlo.servlets.responders 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.openlaszlo.servlets.responders.Responder

All known Subclasses:   org.openlaszlo.servlets.responders.ResponderCache,  org.openlaszlo.servlets.responders.ResponderLIB,  org.openlaszlo.servlets.responders.ResponderCompile,  org.openlaszlo.servlets.responders.ResponderLFC,  org.openlaszlo.servlets.responders.ResponderAdmin,  org.openlaszlo.servlets.responders.ResponderConnectionAgent,  org.openlaszlo.servlets.responders.ResponderPROFILE,  org.openlaszlo.servlets.responders.ResponderEVAL,
Responder
abstract public class Responder (Code)


Field Summary
final public static  StringLZCOOKIE
    
final public static  intMIME_TYPE_HTML
    
final public static  intMIME_TYPE_SVG
    
final public static  intMIME_TYPE_SWF
    
final public static  intMIME_TYPE_XML
    
final public static  intMIME_TYPE_XMLDATA
    
protected  StringmAllowRequestDefaultProperty
     Default request authorization string.
protected static  booleanmCollectStat
    
public static  ClassmCompilerClass
    
protected static  ServletContextmContext
    
public static  ClassmSTAT_adminClass
    
public static  LoadCountmSTAT_allLoadCount
    
public static  ClassmSTAT_compileClass
    
public static  LoadCountmSTAT_compileLoadCount
    
public static  ClassmSTAT_connectClass
    
public static  ClassmSTAT_dataClass
    
public static  LoadCountmSTAT_dataLoadCount
    
public static  ClassmSTAT_mediaClass
    
public static  LoadCountmSTAT_mediaLoadCount
    
public static  LoadCountmSTAT_otherLoadCount
    
public static  DatemSTAT_startDate
    
protected  intmSWFVersionNum
    


Method Summary
protected  FilecheckDirectory(String cacheDir)
    
protected static  voidclearErrorSWFCount()
    
protected static  intgetErrorSWFCount()
    
public  intgetMimeType()
     This is the mime-type of the responder.
public  intgetMimeType(HttpServletRequest req)
    
public synchronized  voidinit(String reqName, ServletConfig config, Properties prop)
     This needs to get called after the instantiation of the class object.
public  voidrespond(HttpServletRequest req, HttpServletResponse res)
    
abstract protected  voidrespondImpl(HttpServletRequest req, HttpServletResponse res)
     This actually implements the responder.
protected  voidrespondWithError(HttpServletResponse res, String m, int status)
    
public static  voidrespondWithErrorHTML(HttpServletResponse res, String s)
     Send an HTML response indicating the error.
protected  voidrespondWithErrorSWF(HttpServletResponse res, String s)
     Send a SWF response indicating the error.
protected  voidrespondWithErrorXML(HttpServletResponse res, String s)
     Send an XML response indicating the error.
protected  voidrespondWithErrorXML(HttpServletResponse res, String s, boolean escape)
     Send an XML response indicating the error.
protected  voidrespondWithException(HttpServletResponse res, Throwable e)
     Send a SWF response indicating the exception.
protected  voidrespondWithExceptionSWF(HttpServletResponse res, Throwable e)
    
public  voidrespondWithMessage(HttpServletRequest req, HttpServletResponse res, String msg)
    
public  voidrespondWithMessage(HttpServletResponse res, String msg)
    
public static  voidrespondWithMessageSWF(HttpServletResponse res, String s)
     Send a SWF response indicating the error.
 voidrespondWithOverLimitMessage(HttpServletRequest req, HttpServletResponse res)
    
protected  voidrespondWithStatusSWF(HttpServletResponse res, int status, String mesg, int serial)
     Sends a successful SWF status response.
protected  voidrespondWithStatusSWF(HttpServletResponse res, int status, String mesg, String xmlBody, int serial)
     Sends a successful SWF status response w/arbitrary xml.
protected  voidrespondWithXML(HttpServletResponse res, String xml)
     Send an XML response.
protected static  voidwriteFooter(ServletOutputStream out)
    
protected static  voidwriteHeader(ServletOutputStream out, Canvas c)
    
protected  StringxmlErrorMsg(int status, String msg)
     Creates an XML error message.
Parameters:
  status - integer status.

Field Detail
LZCOOKIE
final public static String LZCOOKIE(Code)



MIME_TYPE_HTML
final public static int MIME_TYPE_HTML(Code)



MIME_TYPE_SVG
final public static int MIME_TYPE_SVG(Code)



MIME_TYPE_SWF
final public static int MIME_TYPE_SWF(Code)



MIME_TYPE_XML
final public static int MIME_TYPE_XML(Code)



MIME_TYPE_XMLDATA
final public static int MIME_TYPE_XMLDATA(Code)



mAllowRequestDefaultProperty
protected String mAllowRequestDefaultProperty(Code)
Default request authorization string.



mCollectStat
protected static boolean mCollectStat(Code)



mCompilerClass
public static Class mCompilerClass(Code)



mContext
protected static ServletContext mContext(Code)



mSTAT_adminClass
public static Class mSTAT_adminClass(Code)



mSTAT_allLoadCount
public static LoadCount mSTAT_allLoadCount(Code)



mSTAT_compileClass
public static Class mSTAT_compileClass(Code)



mSTAT_compileLoadCount
public static LoadCount mSTAT_compileLoadCount(Code)



mSTAT_connectClass
public static Class mSTAT_connectClass(Code)



mSTAT_dataClass
public static Class mSTAT_dataClass(Code)



mSTAT_dataLoadCount
public static LoadCount mSTAT_dataLoadCount(Code)



mSTAT_mediaClass
public static Class mSTAT_mediaClass(Code)



mSTAT_mediaLoadCount
public static LoadCount mSTAT_mediaLoadCount(Code)



mSTAT_otherLoadCount
public static LoadCount mSTAT_otherLoadCount(Code)



mSTAT_startDate
public static Date mSTAT_startDate(Code)



mSWFVersionNum
protected int mSWFVersionNum(Code)





Method Detail
checkDirectory
protected File checkDirectory(String cacheDir) throws IOException(Code)
a file handle for the given directory string
throws:
  IOException - if there is a problem with the directory



clearErrorSWFCount
protected static void clearErrorSWFCount()(Code)



getErrorSWFCount
protected static int getErrorSWFCount()(Code)



getMimeType
public int getMimeType()(Code)
This is the mime-type of the responder. At the moment, this only gets used by the base class to determine how to respond with errors and exceptions. integer indicating mime-type. See MIME_TYPE properties in thisclass.



getMimeType
public int getMimeType(HttpServletRequest req)(Code)



init
public synchronized void init(String reqName, ServletConfig config, Properties prop) throws ServletException, IOException(Code)
This needs to get called after the instantiation of the class object.



respond
public void respond(HttpServletRequest req, HttpServletResponse res)(Code)



respondImpl
abstract protected void respondImpl(HttpServletRequest req, HttpServletResponse res) throws IOException(Code)
This actually implements the responder.



respondWithError
protected void respondWithError(HttpServletResponse res, String m, int status)(Code)



respondWithErrorHTML
public static void respondWithErrorHTML(HttpServletResponse res, String s)(Code)
Send an HTML response indicating the error.



respondWithErrorSWF
protected void respondWithErrorSWF(HttpServletResponse res, String s)(Code)
Send a SWF response indicating the error.



respondWithErrorXML
protected void respondWithErrorXML(HttpServletResponse res, String s)(Code)
Send an XML response indicating the error.



respondWithErrorXML
protected void respondWithErrorXML(HttpServletResponse res, String s, boolean escape)(Code)
Send an XML response indicating the error.



respondWithException
protected void respondWithException(HttpServletResponse res, Throwable e)(Code)
Send a SWF response indicating the exception.



respondWithExceptionSWF
protected void respondWithExceptionSWF(HttpServletResponse res, Throwable e)(Code)
Send a SWF response indicating the exception



respondWithMessage
public void respondWithMessage(HttpServletRequest req, HttpServletResponse res, String msg) throws IOException(Code)



respondWithMessage
public void respondWithMessage(HttpServletResponse res, String msg) throws IOException(Code)



respondWithMessageSWF
public static void respondWithMessageSWF(HttpServletResponse res, String s)(Code)
Send a SWF response indicating the error.



respondWithOverLimitMessage
void respondWithOverLimitMessage(HttpServletRequest req, HttpServletResponse res) throws IOException(Code)
Respond with an "over limit" message



respondWithStatusSWF
protected void respondWithStatusSWF(HttpServletResponse res, int status, String mesg, int serial)(Code)
Sends a successful SWF status response.
Parameters:
  res - client's servlet response
Parameters:
  status - status code (should be SC_OK)
Parameters:
  mesg - status message
Parameters:
  serial - serial number of request to echo back



respondWithStatusSWF
protected void respondWithStatusSWF(HttpServletResponse res, int status, String mesg, String xmlBody, int serial)(Code)
Sends a successful SWF status response w/arbitrary xml.
Parameters:
  res - client's servlet response
Parameters:
  status - status code (should be SC_OK)
Parameters:
  mesg - status message
Parameters:
  xmlBody - arbitrary xml
Parameters:
  serial - serial number of request to echo back



respondWithXML
protected void respondWithXML(HttpServletResponse res, String xml) throws IOException(Code)
Send an XML response.



writeFooter
protected static void writeFooter(ServletOutputStream out) throws IOException(Code)
Writes the html footer tags



writeHeader
protected static void writeHeader(ServletOutputStream out, Canvas c) throws IOException(Code)
Writes the html header tags
Parameters:
  out - A PrintWriter



xmlErrorMsg
protected String xmlErrorMsg(int status, String msg)(Code)
Creates an XML error message.
Parameters:
  status - integer status. Using HTTP status codes, for now, butLaszlo status codes would be better.
Parameters:
  msg - message to display.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.