📄 testajpparser.java
字号:
body.append("33383332353432363038372d2d0d0a"); return body.toString(); } private String getTestShortBody() { StringBuffer body = new StringBuffer(""); body.append("123402f702f52d2d2d2d2d2d2d2d"); body.append("2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d"); body.append("2d2d2d2d2d3934333833323534323630"); body.append("38370d0a436f6e74656e742d44697370"); body.append("6f736974696f6e3a20666f726d2d6461"); body.append("74613b206e616d653d227265636f7264"); body.append("4964220d0a0d0a320d0a2d2d2d2d2d2d"); body.append("2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d"); body.append("2d2d2d2d2d2d2d393433383332353432"); body.append("363038370d0a436f6e74656e742d4469"); body.append("73706f736974696f6e3a20666f726d2d"); body.append("646174613b206e616d653d226e616d65"); body.append("220d0a0d0a4974656d0d0a2d2d2d2d2d"); body.append("2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d"); body.append("2d2d2d2d2d2d2d2d3934333833323534"); body.append("32363038370d0a436f6e74656e742d44"); body.append("6973706f736974696f6e3a20666f726d"); body.append("2d646174613b206e616d653d22746e49"); body.append("6d674964220d0a0d0a696d67320d0a2d"); body.append("2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d"); body.append("2d2d2d2d2d2d2d2d2d2d2d2d39343338"); body.append("3332353432363038370d0a436f6e7465"); body.append("6e742d446973706f736974696f6e3a20"); body.append("666f726d2d646174613b206e616d653d"); body.append("227468756d624e61696c496d61676546"); body.append("696c65223b2066696c656e616d653d22"); body.append("6161612e747874220d0a436f6e74656e"); body.append("742d547970653a20746578742f706c61"); body.append("696e0d0a0d0a61616161616161616161"); body.append("61616161616161616161616161616161"); body.append("61616161616161616161616161616161"); body.append("61616161616161616161616161616161"); body.append("0d0a2d2d2d2d2d2d2d2d2d2d2d2d2d2d"); body.append("2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d39"); body.append("3433383332353432363038370d0a436f"); body.append("6e74656e742d446973706f736974696f"); body.append("6e3a20666f726d2d646174613b206e61"); body.append("6d653d226c61726765496d6167654669"); body.append("6c65223b2066696c656e616d653d2261"); body.append("61612e747874220d0a436f6e74656e74"); body.append("2d547970653a20746578742f706c6169"); body.append("6e0d0a0d0a6161616161616161616161"); body.append("61616161616161616161616161616161"); body.append("61616161616161616161616161616161"); body.append("6161616161616161616161616161610d"); body.append("0a2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d"); body.append("2d2d2d2d2d2d2d2d2d2d2d2d2d2d3934"); body.append("33383332353432363038372d2d"); return body.toString(); } private String getTestTinyBody() { StringBuffer body = new StringBuffer(""); body.append("123400042d2d0d0a"); return body.toString(); } private static class EH implements Ajp13Parser.EventHandler { public void content(Buffer ref) throws IOException { // System.err.println(ref); } public void headerComplete() throws IOException { // System.err.println("--"); } public void messageComplete(long contextLength) throws IOException { // System.err.println("=="); } public void parsedHeader(Buffer name, Buffer value) throws IOException { // System.err.println(name+": "+value); } public void parsedMethod(Buffer method) throws IOException { // System.err.println(method); } public void parsedProtocol(Buffer protocol) throws IOException { // System.err.println(protocol); } public void parsedQueryString(Buffer value) throws IOException { // System.err.println("?"+value); } public void parsedRemoteAddr(Buffer addr) throws IOException { // System.err.println("addr="+addr); } public void parsedRemoteHost(Buffer host) throws IOException { // System.err.println("host="+host); } public void parsedRequestAttribute(String key, Buffer value) throws IOException { // System.err.println(key+":: "+value); } public void parsedServerName(Buffer name) throws IOException { // System.err.println("Server:: "+name); } public void parsedServerPort(int port) throws IOException { // System.err.println("Port:: "+port); } public void parsedSslSecure(boolean secure) throws IOException { // System.err.println("Secure:: "+secure); } public void parsedUri(Buffer uri) throws IOException { // System.err.println(uri); } public void startForwardRequest() throws IOException { // System.err.println(".."); } public void parsedAuthorizationType(Buffer authType) throws IOException { //To change body of implemented methods use File | Settings | File Templates. } public void parsedRemoteUser(Buffer remoteUser) throws IOException { //To change body of implemented methods use File | Settings | File Templates. } public void parsedServletPath(Buffer servletPath) throws IOException { //To change body of implemented methods use File | Settings | File Templates. } public void parsedContextPath(Buffer context) throws IOException { //To change body of implemented methods use File | Settings | File Templates. } public void parsedSslCert(Buffer sslCert) throws IOException { //To change body of implemented methods use File | Settings | File Templates. } public void parsedSslCipher(Buffer sslCipher) throws IOException { //To change body of implemented methods use File | Settings | File Templates. } public void parsedSslSession(Buffer sslSession) throws IOException { //To change body of implemented methods use File | Settings | File Templates. } public void parsedSslKeySize(int keySize) throws IOException { // System.err.println(key+":: "+value); } public void parsedRequestAttribute(String key, int value) throws IOException { // System.err.println(key+":: "+value); } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -