Skip to content

Commit

Permalink
Add some reminders on setters about NGRequests's desire to be immutable
Browse files Browse the repository at this point in the history
  • Loading branch information
hugithordarson committed Oct 8, 2024
1 parent 7155ee0 commit 7c082c1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ng-appserver/src/main/java/ng/appserver/NGRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,20 +119,30 @@ public void _setFormValues( final Map<String, List<String>> formValues ) {
}

/**
* @return the request's URL
* FIXME: This method should probably be called "url" rather than "uri" // Hugi 2024-06-29
*/
public String uri() {
return _uri;
}

/**
* FIXME: This should really not be settable, NGRequest wants to be immutable // Hugi 2024-08-10
*/
public void setURI( final String uri ) {
_uri = uri;
}

/**
* @return The request's method
*/
public String method() {
return _method;
}

/**
* FIXME: This should really not be settable, NGRequest wants to be immutable // Hugi 2024-08-10
*/
public void setMethod( final String method ) {
_method = method;
}
Expand Down

0 comments on commit 7c082c1

Please sign in to comment.