public class HttpServerDecoderTest extends Object
Constructor and Description |
---|
HttpServerDecoderTest() |
protected static org.apache.mina.core.buffer.IoBuffer getRequestBuffer(String method, String body) throws CharacterCodingException
method
- the HTTP methodbody
- the option bodyCharacterCodingException
- if encoding failsprotected static org.apache.mina.core.buffer.IoBuffer getRequestBuffer(String method) throws CharacterCodingException
CharacterCodingException
protected static org.apache.mina.filter.codec.AbstractProtocolDecoderOutput executeRequest(String method, String body) throws Exception
method
- the HTTP methodbody
- the optional bodyException
- if error occurs (encoding,...)public void testGetRequestWithoutBody() throws Exception
Exception
public void testPutRequestWithoutBody() throws Exception
Exception
public void testPostRequestWithoutBody() throws Exception
Exception
public void testDeleteRequestWithoutBody() throws Exception
Exception
public void testDIRMINA965WithContent() throws Exception
Exception
public void testDIRMINA965WithContentOnTwoChunks() throws Exception
Exception
public void verifyThatHeaderWithoutLeadingSpaceIsSupported() throws Exception
Exception
public void verifyThatLeadingSpacesAreRemovedFromHeader() throws Exception
Exception
public void verifyThatTrailingSpacesAreRemovedFromHeader() throws Exception
Exception
Copyright © 2004–2021 Apache MINA Project. All rights reserved.