public abstract class ServerHttpExchangeTestTemplate extends Object
ServerHttpExchange.| Modifier and Type | Class and Description |
|---|---|
protected class |
ServerHttpExchangeTestTemplate.Performer |
| Modifier and Type | Field and Description |
|---|---|
Timeout |
globalTimeout |
protected ServerHttpExchangeTestTemplate.Performer |
performer |
protected int |
port |
| Constructor and Description |
|---|
ServerHttpExchangeTestTemplate() |
| Modifier and Type | Method and Description |
|---|---|
void |
after() |
void |
before() |
void |
binaryAction_after_end() |
void |
binaryAction() |
void |
bodyAction_with_binary() |
void |
bodyAction_with_text() |
void |
closeAction_abnormal() |
void |
closeAction_normal() |
void |
end_with_binary_data() |
void |
end_with_text_data() |
void |
end() |
void |
header() |
void |
method() |
void |
setHeader() |
void |
setStatus() |
protected abstract void |
startServer()
Starts the server listening port
port and if HTTP request's path is
/test, create ServerHttpExchange and pass it to
performer.serverAction(). |
protected abstract void |
stopServer()
Stops the server started in
startServer(). |
void |
textAction_after_end() |
void |
textAction_charset() |
void |
textAction() |
void |
uri() |
void |
write_binary() |
void |
write_text() |
public Timeout globalTimeout
protected ServerHttpExchangeTestTemplate.Performer performer
protected int port
protected abstract void startServer()
throws Exception
port and if HTTP request's path is
/test, create ServerHttpExchange and pass it to
performer.serverAction(). This method is executed following
Before.Exceptionprotected abstract void stopServer()
throws Exception
startServer(). This method is
executed following After.Exceptionpublic void uri()
public void method()
public void header()
public void textAction()
public void textAction_after_end()
public void textAction_charset()
public void binaryAction()
public void binaryAction_after_end()
public void bodyAction_with_text()
public void bodyAction_with_binary()
public void setHeader()
public void write_text()
public void write_binary()
public void end()
public void end_with_text_data()
public void end_with_binary_data()
public void setStatus()
public void closeAction_normal()
public void closeAction_abnormal()
Copyright 2014, The Vibe Project