1 16 package org.mortbay.http.ajp; 17 18 25 public class AJP13RequestPacket extends AJP13Packet 26 { 27 28 public static String [] __RequestHeader= 29 { "ERROR", "accept", "accept-charset", "accept-encoding", "accept-language", "authorization", "connection", "content-type", "content-length", "cookie", 30 "cookie2", "host", "pragma", "referer", "user-agent" }; 31 32 36 public AJP13RequestPacket(byte[] buffer, int len) 37 { 38 super(buffer,len); 39 40 } 41 42 45 public AJP13RequestPacket(byte[] buffer) 46 { 47 super(buffer); 48 49 } 50 51 54 public AJP13RequestPacket(int size) 55 { 56 super(size); 57 58 } 59 60 public void populateHeaders() 61 { 62 __header=__RequestHeader; 63 for (int i=1; i<__RequestHeader.length; i++) 64 __headerMap.put(__RequestHeader[i],new Integer (0xA000+i)); 65 } 66 67 } 68 | Popular Tags |