com.adventnet.html.staticssi
Class StaticError

java.lang.Object
  extended by com.adventnet.html.staticssi.StaticError

public class StaticError
extends java.lang.Object


Field Summary
static int BAD_REQUEST
          HTTP error BAD_REQUES
static int CONFLICT
          HTTP error CONFLICT
static int FORBIDDEN
          HTTP error FORBIDDEN
static int METHOD_NOT_ALLOWED
          HTTP error METHOD_NOT_ALLOWED
static int NO_CONTENT
          HTTP error NO_CONTENT
static int NOT_AUTHORISED
          Http Authorization error
static int NOT_FOUND
          HTTP error NOT_FOUND
static int OK
          Http error OK -indicates no error
 HtmlParser parser
           
 
Constructor Summary
StaticError()
           
 
Method Summary
 java.lang.String createErrorHtmlPage(int errno)
          Used generate html page for http error.
 void generateErrorHtmlPage(java.lang.StringBuffer strBuf, int errno)
          Used generate html pages for http error.
static java.lang.String getErrorFileName()
           
static int getErrorNumber()
           
static void setErrorFileName(java.lang.String fileName)
           
static void setErrorNumber(int errNum)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parser

public HtmlParser parser

OK

public static int OK
Http error OK -indicates no error


NO_CONTENT

public static int NO_CONTENT
HTTP error NO_CONTENT


BAD_REQUEST

public static int BAD_REQUEST
HTTP error BAD_REQUES


FORBIDDEN

public static int FORBIDDEN
HTTP error FORBIDDEN


NOT_FOUND

public static int NOT_FOUND
HTTP error NOT_FOUND


METHOD_NOT_ALLOWED

public static int METHOD_NOT_ALLOWED
HTTP error METHOD_NOT_ALLOWED


NOT_AUTHORISED

public static int NOT_AUTHORISED
Http Authorization error


CONFLICT

public static int CONFLICT
HTTP error CONFLICT

Constructor Detail

StaticError

public StaticError()
Method Detail

setErrorNumber

public static void setErrorNumber(int errNum)

getErrorNumber

public static int getErrorNumber()

createErrorHtmlPage

public java.lang.String createErrorHtmlPage(int errno)
Used generate html page for http error.

Parameters:
errno - the http error number.
Returns:
the created http error html page.

generateErrorHtmlPage

public void generateErrorHtmlPage(java.lang.StringBuffer strBuf,
                                  int errno)
                           throws ParseException
Used generate html pages for http error.

Parameters:
strBuf - the string buffer to store html tags.
errno - the http error number.
Throws:
ParseException

getErrorFileName

public static java.lang.String getErrorFileName()

setErrorFileName

public static void setErrorFileName(java.lang.String fileName)