javawebparts.ajaxparts.taglib.config
Class AjaxErrorHandler

java.lang.Object
  |
  +--javawebparts.ajaxparts.taglib.config.AjaxErrorHandler

public class AjaxErrorHandler
extends java.lang.Object

This class holds configuration information on an error handler.

Author:
Frank W. Zammetti

Field Summary
private  java.lang.String code
          The HTTP response code this handler will handle.
private  boolean frozen
          Flag: Is the configuration frozen?
private static org.apache.commons.logging.Log log
          Log instance.
private  java.lang.String type
          The type of the handler (either the name of a custom handler, or a standard handler).
 
Constructor Summary
AjaxErrorHandler()
           
 
Method Summary
 void freeze()
          Freezes the configuration of this object.
 java.lang.String getCode()
          code accessor.
 java.lang.String getType()
          type accessor.
 boolean isFrozen()
          Returns true if this onject's config is frozen, false otherwise.
 void setCode(java.lang.String inCode)
          name mutator.
 void setType(java.lang.String inType)
          type mutator.
 java.lang.String toString()
          Overriden toString method.
private  boolean validate()
          This method is called when the object is frozen to ensure it is configured in a legal way.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

private static org.apache.commons.logging.Log log
Log instance.


code

private java.lang.String code
The HTTP response code this handler will handle.


type

private java.lang.String type
The type of the handler (either the name of a custom handler, or a standard handler).


frozen

private boolean frozen
Flag: Is the configuration frozen?

Constructor Detail

AjaxErrorHandler

public AjaxErrorHandler()
Method Detail

setCode

public void setCode(java.lang.String inCode)
name mutator.

Parameters:
inCode - Code to set.

getCode

public java.lang.String getCode()
code accessor.

Returns:
The code.

setType

public void setType(java.lang.String inType)
type mutator.

Parameters:
inType - Type to set.

getType

public java.lang.String getType()
type accessor.

Returns:
The type.

freeze

public void freeze()
Freezes the configuration of this object.


isFrozen

public boolean isFrozen()
Returns true if this onject's config is frozen, false otherwise.

Returns:
True if frozen, false if not.

validate

private boolean validate()
This method is called when the object is frozen to ensure it is configured in a legal way.

Returns:
True if validation passes, false if not.

toString

public java.lang.String toString()
Overriden toString method.

Overrides:
toString in class java.lang.Object
Returns:
A reflexively-built string representation of this bean


Copyright 2005 Frank W. Zammetti