public abstract class ResponseEvent extends WebActionEvent
Modifier | Constructor and Description |
---|---|
protected |
ResponseEvent(@NotNull
WebServer<?> server,
@NotNull WebConnection connection,
@NotNull Socket socket,
@NotNull Method method,
BufferedOutputStream outputStream,
BufferedReader reader,
PrintWriter writer,
String requested)
|
Modifier and Type | Method and Description |
---|---|
String |
getFileRequested()
|
BufferedOutputStream |
getOutputStream()
|
BufferedReader |
getReader()
|
PrintWriter |
getWriter()
|
void |
sendFileResponse(File file)
|
void |
sendResponse(String fileContent,
String contentType)
|
getInputStream,
getMethod,
getServer,
getSocket,
hasInputStream,
isCancelled,
setCancelled
protected ResponseEvent(@NotNull @NotNull WebServer<?> server, @NotNull @NotNull WebConnection connection, @NotNull @NotNull Socket socket, @NotNull @NotNull Method method, BufferedOutputStream outputStream, BufferedReader reader, PrintWriter writer, String requested)
public void sendResponse(String fileContent, String contentType) throws IOException
IOException
public void sendFileResponse(File file) throws IOException
IOException
public BufferedReader getReader()
public PrintWriter getWriter()
public BufferedOutputStream getOutputStream()
public String getFileRequested()
Copyright © 2020. All rights reserved.