@@ -46,7 +46,7 @@ static SimpleHttpExchange createSimpleHttpExchange(final HttpExchange exchange){
4646
4747 private final HttpContext httpContext ;
4848 private final HttpPrincipal httpPrincipal ;
49- private final String protocol , authority , scheme , context , query , fragment ;
49+ private final String protocol ;
5050
5151 private final Headers requestHeaders ;
5252 private final RequestMethod requestMethod ;
@@ -92,11 +92,6 @@ static SimpleHttpExchange createSimpleHttpExchange(final HttpExchange exchange){
9292 //
9393 httpPrincipal = httpExchange .getPrincipal ();
9494 protocol = httpExchange .getProtocol ();
95- authority = URI .getAuthority ();
96- scheme = URI .getScheme ();
97- context = URI .getPath ();
98- query = URI .getQuery ();
99- fragment = URI .getFragment ();
10095 //
10196 requestHeaders = httpExchange .getRequestHeaders ();
10297 switch (exchange .getRequestMethod ()){
@@ -246,31 +241,6 @@ public final String getProtocol(){
246241 return protocol ;
247242 }
248243
249- @ Override
250- public final String getScheme (){
251- return scheme ;
252- }
253-
254- @ Override
255- public final String getAuthority (){
256- return authority ;
257- }
258-
259- @ Override @ Deprecated
260- public final String getQuery (){
261- return query ;
262- }
263-
264- @ Override
265- public final String getContext (){
266- return context ;
267- }
268-
269- @ Override
270- public final String getFragment (){
271- return fragment ;
272- }
273-
274244 //
275245
276246 @ Override
@@ -456,10 +426,6 @@ public final String toString(){
456426 OUT .append ("httpContext" ) .append ("=" ) .append (httpContext ) .append (", " );
457427 OUT .append ("httpPrincipal" ) .append ("=" ) .append (httpPrincipal ) .append (", " );
458428 OUT .append ("protocol" ) .append ("=" ) .append (protocol ) .append (", " );
459- OUT .append ("authority" ) .append ("=" ) .append (authority ) .append (", " );
460- OUT .append ("scheme" ) .append ("=" ) .append (scheme ) .append (", " );
461- OUT .append ("context" ) .append ("=" ) .append (context ) .append (", " );
462- OUT .append ("fragment" ) .append ("=" ) .append (fragment ) .append (", " );
463429 OUT .append ("requestHeaders" ) .append ("=" ) .append (requestHeaders ) .append (", " );
464430 OUT .append ("requestMethod" ) .append ("=" ) .append (requestMethod ) .append (", " );
465431 OUT .append ("responseHeaders" ) .append ("=" ) .append (getResponseHeaders ()) .append (", " );
0 commit comments