1 2 3 27 package org.apache.tomcat.util.handler; 28 29 import java.io.IOException ; 30 import java.io.UnsupportedEncodingException ; 31 import java.io.InputStream ; 32 import java.io.OutputStream ; 33 import java.net.Socket ; 34 import java.util.Enumeration ; 35 36 37 42 public class TcHandlerCtx { 43 44 45 private int type = 0; 46 47 50 public final int getType() { 51 return type; 52 } 53 54 57 public final void setType( int type ) { 58 this.type = type; 59 } 60 61 62 private Object notes[] = new Object [32]; 64 65 68 public final Object getNote( int id ) { 69 return notes[id]; 70 } 71 72 75 public final void setNote( int id, Object o ) { 76 notes[id]=o; 77 } 78 79 80 83 public void recycle() { 84 type = 0; 85 for( int i=0; i<notes.length; i++ ) { 86 notes[i]=null; 87 } 88 } 89 90 } 91 | Popular Tags |