services
Class Error

java.lang.Object
  extended by services.Service
      extended by services.Error
All Implemented Interfaces:
VarHandler

public class Error
extends Service
implements VarHandler

Service zur Anzeige von Fehlermeldungen

Author:
Thorsten Berger

Field Summary
 
Fields inherited from class services.Service
SC_BAD_REQUEST, SC_FORBIDDEN, SC_INTERNAL_SERVER_ERROR, SC_METHOD_NOT_ALLOWED, SC_NOT_FOUND
 
Constructor Summary
Error(RequestInfo ri)
           
 
Method Summary
 void addString(java.lang.String add)
          Fügt Zeichenkette der Ausgabe hinzu.
 java.lang.String[] canHandle()
          Returniert alle Variablen, die VarHandler expandieren kann.
 java.lang.String handleVar(java.lang.String var)
          Variable expandieren.
 void processRequest()
          Eigentliche Ausführung des Services.
 void setStatus(int SC)
          Status-Code setzen.
 
Methods inherited from class services.Service
filterHtml, getAndCheckParameter, getAndCheckParameter, getAndCheckParameter, getAndCheckParameter, getContent, getContentType, getStatusCode, getVM, includeError, includeInfo, isDownloadService, respondError, respondError, respondError, respondWithHtmlService, sendErrorRedirect, sendErrorRedirect, setTemplate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Error

public Error(RequestInfo ri)
Parameters:
ri -
Method Detail

canHandle

public java.lang.String[] canHandle()
Description copied from interface: VarHandler
Returniert alle Variablen, die VarHandler expandieren kann.

Specified by:
canHandle in interface VarHandler
Returns:
String-Array mit Variablen

processRequest

public void processRequest()
Description copied from class: Service
Eigentliche Ausführung des Services.

Specified by:
processRequest in class Service

setStatus

public void setStatus(int SC)
Description copied from class: Service
Status-Code setzen.

See Also:
processRequest()

addString

public void addString(java.lang.String add)
Fügt Zeichenkette der Ausgabe hinzu.

Overrides:
addString in class Service
Parameters:
string -

handleVar

public java.lang.String handleVar(java.lang.String var)
                           throws NoSuchVarException
Description copied from interface: VarHandler
Variable expandieren.

Specified by:
handleVar in interface VarHandler
Returns:
String, der Semantik der Var. zurückgibt
Throws:
NoSuchVarException