public class HttpServerDecoderTest extends Object
Constructor and Description |
---|
HttpServerDecoderTest() |
Modifier and Type | Method and Description |
---|---|
protected static AbstractProtocolDecoderOutput |
executeRequest(String method,
String body)
Execute an HTPP request and return the queue of messages.
|
protected static IoBuffer |
getRequestBuffer(String method) |
protected static IoBuffer |
getRequestBuffer(String method,
String body)
Build an IO buffer containing a simple minimal HTTP request.
|
void |
testDeleteRequestBody() |
void |
testDeleteRequestWithoutBody() |
void |
testDIRMINA965NoContent() |
void |
testDIRMINA965WithContent() |
void |
testDIRMINA965WithContentOnTwoChunks() |
void |
testGetRequestBody() |
void |
testGetRequestWithoutBody() |
void |
testPostRequestBody() |
void |
testPostRequestWithoutBody() |
void |
testPutRequestBody() |
void |
testPutRequestWithoutBody() |
void |
verifyThatHeaderWithoutLeadingSpaceIsSupported() |
void |
verifyThatLeadingSpacesAreRemovedFromHeader() |
void |
verifyThatTrailingSpacesAreRemovedFromHeader() |
protected static IoBuffer getRequestBuffer(String method, String body) throws CharacterCodingException
method
- the HTTP methodbody
- the option bodyCharacterCodingException
- if encoding failsprotected static IoBuffer getRequestBuffer(String method) throws CharacterCodingException
CharacterCodingException
protected static 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
Copyright © 2004–2018 Apache MINA Project. All rights reserved.