AJP Processor implementation.
| 61 | * AJP Processor implementation. |
| 62 | */ |
| 63 | public class AjpProcessor extends AbstractProcessor { |
| 64 | |
| 65 | private static final Log log = LogFactory.getLog(AjpProcessor.class); |
| 66 | /** |
| 67 | * The string manager for this package. |
| 68 | */ |
| 69 | private static final StringManager sm = StringManager.getManager(AjpProcessor.class); |
| 70 | |
| 71 | |
| 72 | /** |
| 73 | * End message array. |
| 74 | */ |
| 75 | private static final byte[] endMessageArray; |
| 76 | private static final byte[] endAndCloseMessageArray; |
| 77 | |
| 78 | |
| 79 | /** |
| 80 | * Flush message array. |
| 81 | */ |
| 82 | private static final byte[] flushMessageArray; |
| 83 | |
| 84 | |
| 85 | /** |
| 86 | * Pong message array. |
| 87 | */ |
| 88 | private static final byte[] pongMessageArray; |
| 89 | |
| 90 | |
| 91 | private static final Map<String,String> jakartaAttributeMapping; |
| 92 | private static final Set<String> iisTlsAttributes; |
| 93 | |
| 94 | |
| 95 | static { |
| 96 | // Allocate the end message array |
| 97 | AjpMessage endMessage = new AjpMessage(16); |
| 98 | endMessage.reset(); |
| 99 | endMessage.appendByte(Constants.JK_AJP13_END_RESPONSE); |
| 100 | endMessage.appendByte(1); |
| 101 | endMessage.end(); |
| 102 | endMessageArray = new byte[endMessage.getLen()]; |
| 103 | System.arraycopy(endMessage.getBuffer(), 0, endMessageArray, 0, endMessage.getLen()); |
| 104 | |
| 105 | // Allocate the end and close message array |
| 106 | AjpMessage endAndCloseMessage = new AjpMessage(16); |
| 107 | endAndCloseMessage.reset(); |
| 108 | endAndCloseMessage.appendByte(Constants.JK_AJP13_END_RESPONSE); |
| 109 | endAndCloseMessage.appendByte(0); |
| 110 | endAndCloseMessage.end(); |
| 111 | endAndCloseMessageArray = new byte[endAndCloseMessage.getLen()]; |
| 112 | System.arraycopy(endAndCloseMessage.getBuffer(), 0, endAndCloseMessageArray, 0, endAndCloseMessage.getLen()); |
| 113 | |
| 114 | // Allocate the flush message array |
| 115 | AjpMessage flushMessage = new AjpMessage(16); |
| 116 | flushMessage.reset(); |
| 117 | flushMessage.appendByte(Constants.JK_AJP13_SEND_BODY_CHUNK); |
| 118 | flushMessage.appendInt(0); |
| 119 | flushMessage.appendByte(0); |
| 120 | flushMessage.end(); |
nothing calls this directly
no test coverage detected