1 16 package org.mortbay.http.ajp; 17 18 25 public class AJP13ResponsePacket extends AJP13Packet 26 { 27 28 public static String [] __ResponseHeader= 29 { "ERROR", "Content-Type", "Content-Language", "Content-Length", "Date", "Last-Modified", "Location", "Set-Cookie", "Set-Cookie2", "Servlet-Engine", 30 "Status", "WWW-Authenticate" }; 31 32 36 public AJP13ResponsePacket(byte[] buffer, int len) 37 { 38 39 super(buffer,len); 40 41 } 42 43 46 public AJP13ResponsePacket(byte[] buffer) 47 { 48 super(buffer); 49 50 } 51 52 55 public AJP13ResponsePacket(int size) 56 { 57 super(size); 58 59 } 60 61 public void populateHeaders() 62 { 63 __header=__ResponseHeader; 64 for (int i=1; i<__ResponseHeader.length; i++) 65 __headerMap.put(__ResponseHeader[i],new Integer (0xA000+i)); 66 } 67 } 68 | Popular Tags |