org.iges.anagram.service
Class WebErrorService

java.lang.Object
  |
  +--org.iges.anagram.AbstractModule
        |
        +--org.iges.anagram.service.Service
              |
              +--org.iges.anagram.service.ErrorService
                    |
                    +--org.iges.anagram.service.WebErrorService
All Implemented Interfaces:
Module

public class WebErrorService
extends ErrorService

Sends an error message as an HTML page


Field Summary
 
Fields inherited from class org.iges.anagram.service.Service
enabled, moduleID, updateFormat
 
Fields inherited from class org.iges.anagram.AbstractModule
log, moduleName, parent, server
 
Constructor Summary
WebErrorService()
           
 
Method Summary
 void configure(Setting setting)
          Configures the module according to the settings provided.
 java.lang.String getServiceName()
          Returns the name of this service.
protected  void sendErrorHTML(java.io.PrintStream out, java.lang.String url, java.lang.String msg)
           
protected  void sendErrorMsg(ClientRequest request, java.lang.String msg)
          Sends the message provided in a format defined by the ErrorService implementation.
protected  void sendErrorText(java.io.PrintStream out, ClientRequest request, java.lang.String debugInfo)
           
protected  void sendUnexpectedErrorMsg(ClientRequest request, java.lang.String debugInfo)
          Sends the "unexpected error" message provided in a format defined by the ErrorService implementation.
protected  void sendUnexpectedHTML(java.io.PrintStream out, ClientRequest request, java.lang.String debugInfo)
           
 
Methods inherited from class org.iges.anagram.service.ErrorService
handle, handle, handleUnexpected
 
Methods inherited from class org.iges.anagram.service.Service
getBaseURL, getDataFromPath, getModuleID, isEnabled, printFooter, printHeader, setEnabled, startHTML
 
Methods inherited from class org.iges.anagram.AbstractModule
configModule, debug, debug, error, fail, fail, fail, getModuleName, info, init, toString, verbose, verbose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WebErrorService

public WebErrorService()
Method Detail

getServiceName

public java.lang.String getServiceName()
Description copied from class: Service
Returns the name of this service. Used to build the module ID, and to map URLs to services.

Specified by:
getServiceName in class Service

configure

public void configure(Setting setting)
Description copied from class: AbstractModule
Configures the module according to the settings provided. The server supports dynamic reconfiguration. Thus this method may be called at any time in the life of the module. If the module cannot be reconfigured, it should throw an exception.

Specified by:
configure in interface Module
Specified by:
configure in class AbstractModule

sendErrorMsg

protected void sendErrorMsg(ClientRequest request,
                            java.lang.String msg)
Description copied from class: ErrorService
Sends the message provided in a format defined by the ErrorService implementation. Called by handle().

Specified by:
sendErrorMsg in class ErrorService

sendUnexpectedErrorMsg

protected void sendUnexpectedErrorMsg(ClientRequest request,
                                      java.lang.String debugInfo)
Description copied from class: ErrorService
Sends the "unexpected error" message provided in a format defined by the ErrorService implementation. Called by handle().

Specified by:
sendUnexpectedErrorMsg in class ErrorService

sendErrorHTML

protected void sendErrorHTML(java.io.PrintStream out,
                             java.lang.String url,
                             java.lang.String msg)

sendUnexpectedHTML

protected void sendUnexpectedHTML(java.io.PrintStream out,
                                  ClientRequest request,
                                  java.lang.String debugInfo)

sendErrorText

protected void sendErrorText(java.io.PrintStream out,
                             ClientRequest request,
                             java.lang.String debugInfo)