Skip to content
This repository was archived by the owner on Jul 31, 2022. It is now read-only.

Commit ac2405b

Browse files
committed
Removed URI submethods
1 parent b698ee6 commit ac2405b

File tree

2 files changed

+1
-123
lines changed

2 files changed

+1
-123
lines changed

src/ktt/lib/httpserver/SimpleHttpExchange.java

Lines changed: 0 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -162,99 +162,11 @@ static SimpleHttpExchange create(final HttpExchange exchange){
162162
*
163163
* @return url protocol
164164
*
165-
* @see #getURI()
166-
* @see URI
167-
* @see #getScheme()
168-
* @see #getAuthority()
169-
* @see #getRawGet()
170-
* @see #getContext()
171-
* @see #getFragment()
172165
* @since 02.00.00
173166
* @author Ktt Development
174167
*/
175168
public abstract String getProtocol();
176169

177-
/**
178-
* Returns the scheme for the URI address.
179-
*
180-
* @return url scheme
181-
*
182-
* @see #getURI()
183-
* @see URI
184-
* @see #getProtocol()
185-
* @see #getAuthority()
186-
* @see #getRawGet()
187-
* @see #getContext()
188-
* @see #getFragment()
189-
* @since 02.00.00
190-
* @author Ktt Development
191-
*/
192-
public abstract String getScheme();
193-
194-
/**
195-
* Returns the authority for the URI address.
196-
*
197-
* @return url authority
198-
*
199-
* @see #getURI()
200-
* @see URI
201-
* @see #getProtocol()
202-
* @see #getScheme()
203-
* @see #getRawGet()
204-
* @see #getContext()
205-
* @see #getFragment()
206-
* @since 02.00.00
207-
* @author Ktt Development
208-
*/
209-
public abstract String getAuthority();
210-
211-
/**
212-
* Returns the URI query for the URI address.
213-
*
214-
* @deprecated use {@link #getRawGet()} instead
215-
* @return url query
216-
*
217-
* @see #getRawGet()
218-
* @since 02.00.00
219-
* @author Ktt Development
220-
*/
221-
@Deprecated
222-
public abstract String getQuery();
223-
224-
/**
225-
* Returns the context for the URI address.
226-
*
227-
* @return url
228-
*
229-
* @see #getURI()
230-
* @see URI
231-
* @see #getProtocol()
232-
* @see #getScheme()
233-
* @see #getAuthority()
234-
* @see #getRawGet()
235-
* @see #getFragment()
236-
* @since 02.00.00
237-
* @author Ktt Development
238-
*/
239-
public abstract String getContext();
240-
241-
/**
242-
* Returns the fragment for the URI address.
243-
*
244-
* @return url fragment
245-
*
246-
* @see #getURI()
247-
* @see URI
248-
* @see #getProtocol()
249-
* @see #getScheme()
250-
* @see #getAuthority()
251-
* @see #getRawGet()
252-
* @see #getContext()
253-
* @since 02.00.00
254-
* @author Ktt Development
255-
*/
256-
public abstract String getFragment();
257-
258170
//
259171

260172
/**

src/ktt/lib/httpserver/SimpleHttpExchangeImpl.java

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)