-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request
Description
Logback Access 2.0.1 and Jetty 12.
The methods getCookies, getLocalPort, and getLocalAddr currently exist within the RequestWrapper class but do not return meaningful data as one might expect.
These methods will be used in my project and I expect to improve them.
Moreover, the improvements to getCookies and getLocalPort methods are useful as they correlate with the values used in logback-access's pattern layouts, such as %reqCookie
for cookies and %localPort
for the local port. (For some reason, %localIP
works without the getLocalAddr implementation.
I propose the following changes:
getCookies()
: This method should be improved to convert and return an array ofCookie
objects, derived from theList<HttpCookie>
returned byRequest::getCookies
.getLocalPort()
: By usingRequest::getLocalPort
, this method could be improved to return the port number.getLocalAddr()
: Similarly by usingRequest::getLocalAddr
, this method could be improved to return the local address.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request