public class ResponseActionExamples extends Object
Constructor and Description |
---|
ResponseActionExamples() |
Modifier and Type | Method and Description |
---|---|
void |
javascriptTemplatedResponse() |
void |
javascriptTemplatedResponseWithDelay() |
void |
jsonResponseWithUTF8Body() |
static void |
main(String[] args) |
void |
respondDifferentlyForTheSameRequest() |
void |
responseLiteralWith10SecondDelay() |
void |
responseLiteralWithBinaryPNGBody() |
void |
responseLiteralWithBodyOnly() |
void |
responseLiteralWithConnectionOptionsToCloseSocket() |
void |
responseLiteralWithConnectionOptionsToOverrideHeaders() |
void |
responseLiteralWithConnectionOptionsToSuppressHeaders() |
void |
responseLiteralWithCookie() |
void |
responseLiteralWithHeader() |
void |
responseLiteralWithStatusCodeAndReasonPhraseOnly() |
void |
responseLiteralWithUTF16BodyResponse() |
void |
velocityTemplatedResponse() |
public void responseLiteralWithBodyOnly()
public void responseLiteralWithUTF16BodyResponse()
public void jsonResponseWithUTF8Body()
public void responseLiteralWithHeader()
public void responseLiteralWithCookie()
public void responseLiteralWithStatusCodeAndReasonPhraseOnly()
public void respondDifferentlyForTheSameRequest()
public void responseLiteralWithBinaryPNGBody() throws IOException
IOException
public void responseLiteralWith10SecondDelay()
public void responseLiteralWithConnectionOptionsToSuppressHeaders()
public void responseLiteralWithConnectionOptionsToOverrideHeaders()
public void responseLiteralWithConnectionOptionsToCloseSocket()
public void javascriptTemplatedResponse()
public void javascriptTemplatedResponseWithDelay()
public void velocityTemplatedResponse()
public static void main(String[] args) throws InterruptedException
InterruptedException
Copyright © 2020. All rights reserved.