de.schwarzrot.net.http.service
Class AbstractJSONRequestHandler
java.lang.Object
de.schwarzrot.net.http.service.AbstractRequestHandler
de.schwarzrot.net.http.service.AbstractJSONRequestHandler
- All Implemented Interfaces:
- RequestHandler
public abstract class AbstractJSONRequestHandler
- extends AbstractRequestHandler
Fields inherited from interface de.schwarzrot.net.http.service.RequestHandler |
HTTP_CONTENT_LENGTH, HTTP_LANGUAGE, MIME_CSS, MIME_GIF, MIME_HTML, MIME_ICON, MIME_JPEG, MIME_JS, MIME_JSON, MIME_PNG, MIME_TIFF, MIME_UNKNOWN, QUERY_STRING, REQUEST_DEFAULT_HANDLER, REQUEST_DEFAULT_URL, REQUEST_GET_METHOD, REQUEST_HELP_URL, REQUEST_JSON_CHECK, REQUEST_LOCATION, REQUEST_METHOD, REQUEST_OPTIONS_METHOD, REQUEST_POST_METHOD, REQUEST_TIME, REQUEST_URI, REQUEST_WEBIF_BASE, REQUEST_WEBIF_EXT, REQUEST_WEBIF_ROOT, RESPONSE_HEADER, RESPONSE_LEN_HEADER, RESPONSE_STATUS_HEADER, SERVER_PROTOCOL |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractJSONRequestHandler
public AbstractJSONRequestHandler()
replySuccess
public boolean replySuccess(PrintWriter writer,
HttpStatusCode status,
String errorMessage)
throws Exception
- Description copied from interface:
RequestHandler
- centralized message creator service
- Specified by:
replySuccess
in interface RequestHandler
- Specified by:
replySuccess
in class AbstractRequestHandler
- Parameters:
writer
- - the communication channel to the clientstatus
- - the status code of the last requesterrorMessage
- - the error message for the client
- Throws:
Exception
- - type of exception varies depending on the protocol used
Submit
a bug or request a feature
SRJRCFrames is published according to the
GNU General Public License
Copyright 2005-2012
Reinhard Mantey - some rights reserved.