RedirectResolution could be more extension friendly with a getExecuteUrl() (or
setPrependContext())
---------------------------------------------------------------------------------------------------
Key: STS-863
URL: http://www.stripesframework.org/jira/browse/STS-863
Project: Stripes
Issue Type: Improvement
Affects Versions: Release 1.5.6
Reporter: Carl Krig
Priority: Minor
Extending RedirectResolution (for example to handle switch between http and
https) is a bit problematic because there is no control over the private
prependContext (which is default true, and beanType constructors all keep it
that way), and execute() with all it goodies works directly with this private
prependContext so you end up having to override just about everything.
Making it more extension friendly;
Primary suggestion: public getExecuteUrl(Locale locale)
This would do a normal getUrl() and prepend context if necessary. Overriding
would be easy, if you wanted not to prepend. execute() would do String url =
getExecuteUrl(getRequest().getLocale()) and continue with encoding and
redirecting.
Secondary suggestion: getPrependContext() + setPrependContext()
This is a bit less subtle, perhaps, but would work for me.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of
discussion for anyone considering optimizing the pricing and packaging model
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development