Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WW-4572 Http parameters #58

Merged
merged 103 commits into from
Jul 15, 2016
Merged

WW-4572 Http parameters #58

merged 103 commits into from
Jul 15, 2016

Conversation

lukaszlenart
Copy link
Member

Implements WW-4572

This PR converts parameters to be represented by a dedicated class - HttpParameters - instead of using a simple Map.

@cnenning
Copy link
Member

As far as I see it, there is no new functionality (like security checks) right now. Currently the code is just refactored to work with new interface/class Parameter and HttpParameters, am I right?

The method Parameter.isExpression() seems not to be used or implemented (ohter than return false)? The new class Evaluated is only used by AliasInterceptor?

This looks promising ...

Beside future things, I have two questions about how things are done right now:

  • It seems to me that currently converters are not used. Now we got Parameter.Request.getValue(). Should converters be used there?
  • My first impression is that that method could be slow, as it could be called quite often. What about caching the result of toStringArray() in a member?

lukaszlenart and others added 21 commits January 19, 2016 16:19
Conflicts:
	core/src/main/java/com/opensymphony/xwork2/util/CompoundRoot.java
Conflicts:
	core/src/main/java/com/opensymphony/xwork2/interceptor/ParametersInterceptor.java
	core/src/test/java/com/opensymphony/xwork2/interceptor/I18nInterceptorTest.java
	core/src/test/java/com/opensymphony/xwork2/interceptor/ParameterRemoverInterceptorTest.java
	core/src/test/java/org/apache/struts2/interceptor/MessageStoreInterceptorTest.java
	core/src/test/java/org/apache/struts2/interceptor/ServletConfigInterceptorTest.java
	core/src/test/java/org/apache/struts2/views/jsp/ActionTagTest.java
@ke4qqq
Copy link

ke4qqq commented Mar 25, 2016

Closing and reopening to make sure Travis is working.

@ke4qqq ke4qqq closed this Mar 25, 2016
@ke4qqq ke4qqq reopened this Mar 25, 2016
@lukaszlenart lukaszlenart changed the title Http parameters WW-4572 Http parameters Jul 15, 2016
@asfgit asfgit merged commit 70fdc00 into apache:master Jul 15, 2016
@lukaszlenart lukaszlenart deleted the http-parameters branch July 15, 2016 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants