This repository was archived by the owner on Jul 31, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed
src/main/java/com/kttdevelopment/simplehttpserver/handler Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 33import com .kttdevelopment .simplehttpserver .var .HttpCode ;
44import com .kttdevelopment .simplehttpserver .SimpleHttpExchange ;
55import com .kttdevelopment .simplehttpserver .SimpleHttpHandler ;
6+ import com .sun .net .httpserver .HttpExchange ;
67
78import java .io .*;
89import java .nio .file .Files ;
@@ -679,6 +680,11 @@ public final void handle(final SimpleHttpExchange exchange) throws IOException{
679680 exchange .close ();
680681 }
681682
683+ @ Override
684+ public final void handle (final HttpExchange exchange ) throws IOException {
685+ SimpleHttpHandler .super .handle (exchange );
686+ }
687+
682688 /**
683689 * Handles a file and gives a response.
684690 *
Original file line number Diff line number Diff line change 33import com .kttdevelopment .simplehttpserver .var .HttpCode ;
44import com .kttdevelopment .simplehttpserver .SimpleHttpExchange ;
55import com .kttdevelopment .simplehttpserver .SimpleHttpHandler ;
6+ import com .sun .net .httpserver .HttpExchange ;
67
78import java .io .IOException ;
89
@@ -31,6 +32,11 @@ public RedirectHandler(final String link){
3132 this .link = link ;
3233 }
3334
35+ @ Override
36+ public final void handle (final HttpExchange exchange ) throws IOException {
37+ SimpleHttpHandler .super .handle (exchange );
38+ }
39+
3440 @ Override
3541 public final void handle (final SimpleHttpExchange exchange ) throws IOException {
3642 exchange .getResponseHeaders ().set ("Location" , link );
Original file line number Diff line number Diff line change 44import com .kttdevelopment .simplehttpserver .SimpleHttpHandler ;
55import com .kttdevelopment .simplehttpserver .var .HttpCode ;
66import com .kttdevelopment .simplehttpserver .var .RequestMethod ;
7+ import com .sun .net .httpserver .HttpExchange ;
78
89import java .io .IOException ;
910import java .io .OutputStream ;
@@ -26,6 +27,11 @@ public class SSEHandler implements SimpleHttpHandler {
2627 private final AtomicInteger eventId = new AtomicInteger (-1 );
2728 private final LinkedList <EventStreamRecord > queue = new LinkedList <>();
2829
30+ @ Override
31+ public final void handle (final HttpExchange exchange ) throws IOException {
32+ SimpleHttpHandler .super .handle (exchange );
33+ }
34+
2935 @ Override
3036 public final void handle (final SimpleHttpExchange exchange ) throws IOException {
3137 exchange .getResponseHeaders ().add ("Access-Control-Allow-Headers" , "Content-Type" );
You can’t perform that action at this time.
0 commit comments