This repository was archived by the owner on Jul 31, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/main/java/com/kttdevelopment/simplehttpserver Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -184,12 +184,12 @@ public synchronized final HttpContext createTemporaryContext(final HttpHandler h
184184
185185 @ Override
186186 public synchronized final HttpContext createTemporaryContext (final String context ){
187- return createContext (context , (exchange ) -> removeContext (context ));
187+ return createContext (context , (HttpExchange exchange ) -> removeContext (context ));
188188 }
189189
190190 @ Override
191191 public synchronized final HttpContext createTemporaryContext (final String context , final long maxTime ){
192- final HttpContext httpContext = createContext (context , (exchange ) -> removeContext (context ));
192+ final HttpContext httpContext = createContext (context , (HttpExchange exchange ) -> removeContext (context ));
193193
194194 new Thread (() -> {
195195 try {
@@ -203,15 +203,15 @@ public synchronized final HttpContext createTemporaryContext(final String contex
203203
204204 @ Override
205205 public synchronized final HttpContext createTemporaryContext (final String context , final HttpHandler handler ){
206- return createContext (context , (exchange ) -> {
206+ return createContext (context , (HttpExchange exchange ) -> {
207207 handler .handle (exchange );
208208 removeContext (context );
209209 });
210210 }
211211
212212 @ Override
213213 public synchronized final HttpContext createTemporaryContext (final String context , final HttpHandler handler , final long maxTime ){
214- final HttpContext httpContext = createContext (context , (exchange ) -> {
214+ final HttpContext httpContext = createContext (context , (HttpExchange exchange ) -> {
215215 handler .handle (exchange );
216216 removeContext (context );
217217 });
You can’t perform that action at this time.
0 commit comments