| 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) | | |
Method Summary | |
protected File | checkDirectory(String cacheDir) | protected static void | clearErrorSWFCount() | protected static int | getErrorSWFCount() | public int | getMimeType() This is the mime-type of the responder. | public int | getMimeType(HttpServletRequest req) | public synchronized void | init(String reqName, ServletConfig config, Properties prop) This needs to get called after the instantiation of the class object. | public void | respond(HttpServletRequest req, HttpServletResponse res) | abstract protected void | respondImpl(HttpServletRequest req, HttpServletResponse res) This actually implements the responder. | protected void | respondWithError(HttpServletResponse res, String m, int status) | public static void | respondWithErrorHTML(HttpServletResponse res, String s) Send an HTML response indicating the error. | protected void | respondWithErrorSWF(HttpServletResponse res, String s) Send a SWF response indicating the error. | protected void | respondWithErrorXML(HttpServletResponse res, String s) Send an XML response indicating the error. | protected void | respondWithErrorXML(HttpServletResponse res, String s, boolean escape) Send an XML response indicating the error. | protected void | respondWithException(HttpServletResponse res, Throwable e) Send a SWF response indicating the exception. | protected void | respondWithExceptionSWF(HttpServletResponse res, Throwable e) | public void | respondWithMessage(HttpServletRequest req, HttpServletResponse res, String msg) | public void | respondWithMessage(HttpServletResponse res, String msg) | public static void | respondWithMessageSWF(HttpServletResponse res, String s) Send a SWF response indicating the error. | void | respondWithOverLimitMessage(HttpServletRequest req, HttpServletResponse res) | protected void | respondWithStatusSWF(HttpServletResponse res, int status, String mesg, int serial) Sends a successful SWF status response. | protected void | respondWithStatusSWF(HttpServletResponse res, int status, String mesg, String xmlBody, int serial) Sends a successful SWF status response w/arbitrary xml. | protected void | respondWithXML(HttpServletResponse res, String xml) Send an XML response. | protected static void | writeFooter(ServletOutputStream out) | protected static void | writeHeader(ServletOutputStream out, Canvas c) | protected String | xmlErrorMsg(int status, String msg) Creates an XML error message.
Parameters: status - integer status. |
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) | | |
mSTAT_adminClass | public static Class mSTAT_adminClass(Code) | | |
mSTAT_compileClass | public static Class mSTAT_compileClass(Code) | | |
mSTAT_connectClass | public static Class mSTAT_connectClass(Code) | | |
mSTAT_dataClass | public static Class mSTAT_dataClass(Code) | | |
mSTAT_mediaClass | public static Class mSTAT_mediaClass(Code) | | |
mSTAT_startDate | public static Date mSTAT_startDate(Code) | | |
mSWFVersionNum | protected int mSWFVersionNum(Code) | | |
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. |
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 |
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. |
|
|