SRJRCFrames
v0.1.296

de.schwarzrot.net.http.service
Class AbstractJSONRequestHandler

java.lang.Object
  extended by de.schwarzrot.net.http.service.AbstractRequestHandler
      extended by de.schwarzrot.net.http.service.AbstractJSONRequestHandler
All Implemented Interfaces:
RequestHandler

public abstract class AbstractJSONRequestHandler
extends AbstractRequestHandler


Field Summary
 
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
 
Constructor Summary
AbstractJSONRequestHandler()
           
 
Method Summary
 boolean replySuccess(PrintWriter writer, HttpStatusCode status, String errorMessage)
          centralized message creator service
 
Methods inherited from class de.schwarzrot.net.http.service.AbstractRequestHandler
doIDAction, getHandlerIdentifier, getLogger, getProtocolHandler, getServer, getTransactionFactory, initResponse, initResponse, replySuccess, setup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.schwarzrot.net.http.service.RequestHandler
process, usage
 

Constructor Detail

AbstractJSONRequestHandler

public AbstractJSONRequestHandler()
Method Detail

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 client
status - - the status code of the last request
errorMessage - - the error message for the client
Throws:
Exception - - type of exception varies depending on the protocol used

SRJRCFrames
v0.1.296

hosted at
Find SRJRCFrames at SourceForge.net. Fast, secure and free:
           Open Source Software download
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.