public class Response extends Object
Constructor and Description |
---|
Response(OutputStream output,
DataRequestHandler h)
Class Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
sendStaticResource()
Wrties the HTML to the Outputstream according to the requested page.
|
void |
setRequest(Request request)
Sets the HTML Request to get response for.
|
public Response(OutputStream output, DataRequestHandler h)
output
- Website outputstream to write the response to.h
- Current Instance of DataRequestHandlerpublic void sendStaticResource() throws IOException
IOException
public void setRequest(Request request)
request
- Request.Copyright © 2017. All rights reserved.