[arquillian-issues] [JBoss JIRA] Resolved: (ARQAJO-30) Rename contextRoot and contextPath in configuration names
Lukáš Fryč (JIRA)
jira-events at lists.jboss.org
Mon May 9 13:02:18 EDT 2011
[ https://issues.jboss.org/browse/ARQAJO-30?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lukáš Fryč resolved ARQAJO-30.
------------------------------
Fix Version/s: (was: 1.0.0.Alpha3)
Resolution: Out of Date
URL injection will be provided by @ArquillianResource URL, sample usage at
https://github.com/arquillian/arquillian-showcase/blob/master/ui/src/test/java/com/acme/ui/LoginScreenAjacodoTestCase.java
> Rename contextRoot and contextPath in configuration names
> ---------------------------------------------------------
>
> Key: ARQAJO-30
> URL: https://issues.jboss.org/browse/ARQAJO-30
> Project: Arquillian Ajocado
> Issue Type: Enhancement
> Components: api
> Reporter: Karel Piwko
> Assignee: Lukáš Fryč
>
> I find current URL object names (contextRoot and contextPath) a bit misleading.
> 1/ contextRoot and contextPath have same meaning as web application path, that is a part after authority's slash (/) and before next slash
> e.g. for http://localhost:8080/foo/bar the contextPath and contextRoot is either /foo (contextPath), foo(context-root)
> in current version contextRoot = http://localhost:8080, contextPath = http://localhost:8080/foo
> With URLUtils it is not possible to create a path such as http://localhost:8080/foo/ , because new URL(context, spec) called as new URL(contextPath, "/") according to RFC3296 returns http://localhost:8080
> However, if contextPath was a string, it could be called as URLUtils(contextRoot, contextPath, "/"), not sure about slash between contextRoot and contextPath though.
> My suggestions:
> baseURL (http://localhost:8080/) - URL
> contextPath/contextRoot(/foo) - String
> fullURL (http://localhost:8080/foo) - URL
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the arquillian-issues
mailing list