Skip to content

Commit e421aa8

Browse files
committed
Clean up some comments
1 parent cbfb75d commit e421aa8

16 files changed

+32
-12
lines changed

src/express/Express.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919

2020
/**
2121
* @author Simon Reinisch
22-
* @implNote Core modul, don't change anything.
23-
* <p>
2422
* Core class of java-express
2523
*/
2624
public class Express implements Router {

src/express/filter/FilterImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
/**
1313
* @author Simon Reinisch
14+
* <p>
1415
* An http-filter to extract data and check if an context matches
1516
* the request.
1617
*/

src/express/filter/FilterLayer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
/**
1313
* @author Simon Reinisch
14+
* <p>
1415
* Controller class for FilterLayer.
1516
*/
1617
public class FilterLayer<T extends HttpRequest> {

src/express/filter/FilterLayerHandler.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
/**
1414
* @author Simon Reinisch
15+
* <p>
1516
* Handler for multiple FilterLayer.
1617
*/
1718
public class FilterLayerHandler {

src/express/filter/FilterTask.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
/**
44
* @author Simon Reinisch
5+
* <p>
56
* Interface for filter tasks.
67
*/
78
public interface FilterTask {

src/express/filter/FilterWorker.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
/**
77
* @author Simon Reinisch
8+
* <p>
89
* Worker modul for FilterTasks.
910
*/
1011
public class FilterWorker extends TimerTask {

src/express/http/Cookie.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
/**
77
* @author Simon Reinisch
8+
* Simple class which represents an HTTPCookie
89
*/
910
public class Cookie {
1011

src/express/http/SessionCookie.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
* @author Simon Reinisch
5-
* An simple SessionCookie implenetation.
5+
* An simple SessionCookie implemetation.
66
*/
77
public class SessionCookie {
88

src/express/http/request/Authorization.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44

55
/**
66
* @author Simon Reinisch
7+
* <p>
78
* Class for an http-authorization
89
*/
910
public class Authorization {
1011

1112
private final String TYPE;
1213
private final String DATA;
1314

14-
public Authorization(String authHeader) {
15+
Authorization(String authHeader) {
1516
int index = authHeader.indexOf(' ');
1617
this.TYPE = authHeader.substring(0, index);
1718
this.DATA = authHeader.substring(index + 1);

src/express/http/request/Request.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,19 @@
1616

1717
/**
1818
* @author Simon Reinisch
19+
* <p>
1920
* Class for http-request content.
2021
*/
2122
public class Request {
2223

2324
private final Express EXPRESS;
24-
private final HttpExchange HTTP_EXCHANGE; // The http exchange
25+
2526
private final URI URI; // Request URI
2627
private final InputStream BODY; // Request body
2728
private final Headers HEADERS; // Request Headers
2829
private final String CONTENT_TYPE; // Request content-type
2930
private final long CONTENT_LENGTH; // Request content-length
31+
private final String METHOD; // Request method
3032
private final Authorization AUTH; // Authorization header parsed
3133
private final InetSocketAddress INET; // Client socket adress
3234

@@ -44,7 +46,7 @@ public class Request {
4446

4547
public Request(HttpExchange exchange, Express express) {
4648
this.EXPRESS = express;
47-
this.HTTP_EXCHANGE = exchange;
49+
this.METHOD = exchange.getRequestMethod();
4850
this.URI = exchange.getRequestURI();
4951
this.HEADERS = exchange.getRequestHeaders();
5052
this.BODY = exchange.getRequestBody();
@@ -212,7 +214,7 @@ public URI getURI() {
212214
* @return The request-method.
213215
*/
214216
public String getMethod() {
215-
return HTTP_EXCHANGE.getRequestMethod();
217+
return this.METHOD;
216218
}
217219

218220
/**

0 commit comments

Comments
 (0)