FileDocCategorySizeDatePackage
TcHandlerCtx.javaAPI DocGlassfish v2 API3272Fri May 04 22:33:14 BST 2007org.apache.tomcat.util.handler

TcHandlerCtx

public class TcHandlerCtx extends Object
Store all context informations for the invocation of a handler chain.
author
Costin Manolache

Fields Summary
private int
type
private Object[]
notes
Constructors Summary
Methods Summary
public final java.lang.ObjectgetNote(int id)
Get a note associated with this hanlder context.


                 
           
        return notes[id];
    
public final intgetType()
Get the type of the handler context.


                
        
        return type;
    
public voidrecycle()
Recycle the hanlder context.

        type = 0;
        for( int i=0; i<notes.length; i++ ) {
            notes[i]=null;
        }
    
public final voidsetNote(int id, java.lang.Object o)
Associate a note with this hanlder context.

        notes[id]=o;
    
public final voidsetType(int type)
Set the type of the handler context.

        this.type = type;