@@ -339,7 +339,7 @@ public final HashMap<String, String> getCookies(){
339339 }
340340
341341 @ Override
342- public synchronized final void setCookie (final SimpleHTTPCookie cookie ){
342+ public synchronized final void setCookie (final SimpleHttpCookie cookie ){
343343 getResponseHeaders ().add ("Set-Cookie" ,cookie .toString ());
344344 }
345345
@@ -351,7 +351,7 @@ public synchronized final HttpSession getHttpSession(){
351351 final HttpSession session ;
352352 if ((sessionId = cookies .get ("__session-id" )) == null || !HttpSession .sessions .containsKey (sessionId )){
353353 session = HttpSession .create ();
354- setCookie (new SimpleHTTPCookie ("__session-id" ,session .getSessionID (),null ,null ,null ,null ,null ,false ,true ));
354+ setCookie (new SimpleHttpCookie ("__session-id" , session .getSessionID (), null , null , null , null , null , false , true ));
355355 }else {
356356 session = HttpSession .sessions .get (sessionId );
357357 }
@@ -372,12 +372,12 @@ public synchronized final void send(final int responseCode) throws IOException{
372372
373373 @ Override
374374 public synchronized final void send (final byte [] response ) throws IOException {
375- send (response , HTTPCode .HTTP_OK ,false );
375+ send (response , HttpCode .HTTP_OK , false );
376376 }
377377
378378 @ Override
379379 public void send (final byte [] response , final boolean gzip ) throws IOException {
380- send (response ,HTTPCode .HTTP_OK ,gzip );
380+ send (response , HttpCode .HTTP_OK , gzip );
381381 }
382382
383383 @ Override
@@ -405,12 +405,12 @@ public void send(final byte[] response, final int responseCode, final boolean gz
405405
406406 @ Override
407407 public synchronized final void send (final String response ) throws IOException {
408- send (response .getBytes (StandardCharsets .UTF_8 ),HTTPCode .HTTP_OK ,false );
408+ send (response .getBytes (StandardCharsets .UTF_8 ), HttpCode .HTTP_OK , false );
409409 }
410410
411411 @ Override
412412 public void send (final String response , final boolean gzip ) throws IOException {
413- send (response .getBytes (StandardCharsets .UTF_8 ),HTTPCode .HTTP_OK ,gzip );
413+ send (response .getBytes (StandardCharsets .UTF_8 ), HttpCode .HTTP_OK , gzip );
414414 }
415415
416416 @ Override
0 commit comments