public class HttpStack extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
LOCAL_RESOURCE_NAME
The resource associated with the local resources behavior.
|
| Constructor and Description |
|---|
HttpStack(int httpPort)
Instantiates a new http stack on the requested port.
|
| Modifier and Type | Method and Description |
|---|---|
void |
doReceiveMessage(Request request) |
protected void |
doSendResponse(Request request,
Response response) |
RequestHandler |
getRequestHandler() |
boolean |
isWaitingRequest(Request request)
Checks if a thread is waiting for the arrive of a specific response.
|
void |
setRequestHandler(RequestHandler requestHandler) |
public static final String LOCAL_RESOURCE_NAME
public HttpStack(int httpPort)
throws IOException
httpPort - the http portIOException - Signals that an I/O exception has occurred.public boolean isWaitingRequest(Request request)
request - the requestprotected void doSendResponse(Request request, Response response) throws IOException
IOExceptionpublic void doReceiveMessage(Request request)
public RequestHandler getRequestHandler()
public void setRequestHandler(RequestHandler requestHandler)
Copyright © 2014 Institute for Pervasive Computing, ETH Zurich. All rights reserved.