Author: heiko.braun(a)jboss.com
Date: 2007-11-26 10:21:19 -0500 (Mon, 26 Nov 2007)
New Revision: 5117
Modified:
rest/jboss-rest.iws
rest/src/test/java/org/jboss/test/rest/invocation/uriparam/UriParamTestCase.java
Log:
API docs
Modified: rest/jboss-rest.iws
===================================================================
--- rest/jboss-rest.iws 2007-11-26 15:17:55 UTC (rev 5116)
+++ rest/jboss-rest.iws 2007-11-26 15:21:19 UTC (rev 5117)
@@ -17,16 +17,14 @@
</component>
<component name="ChangeListManager">
<list default="true" name="Default" comment="">
- <change type="MODIFICATION"
beforePath="$PROJECT_DIR$/src/main/java/org/jboss/rest/model/RootParameterBinding.java"
afterPath="$PROJECT_DIR$/src/main/java/org/jboss/rest/model/RootParameterBinding.java"
/>
+ <change type="MODIFICATION"
beforePath="$PROJECT_DIR$/src/test/java/org/jboss/test/rest/invocation/uriparam/UriParamTestCase.java"
afterPath="$PROJECT_DIR$/src/test/java/org/jboss/test/rest/invocation/uriparam/UriParamTestCase.java"
/>
<change type="MODIFICATION"
beforePath="/home/hbraun/dev/prj/jbossas/trunk/webservices/build.xml"
afterPath="/home/hbraun/dev/prj/jbossas/trunk/webservices/build.xml" />
<change type="MODIFICATION"
beforePath="/home/hbraun/dev/prj/jbossws/spi/trunk/src/main/java/org/jboss/wsf/spi/deployment/Deployment.java"
afterPath="/home/hbraun/dev/prj/jbossws/spi/trunk/src/main/java/org/jboss/wsf/spi/deployment/Deployment.java"
/>
<change type="MODIFICATION"
beforePath="/home/hbraun/dev/prj/jbossas/trunk/webservices/src/main/org/jboss/wsf/container/jboss50/JAXWSDeployerHookPostJSE.java"
afterPath="/home/hbraun/dev/prj/jbossas/trunk/webservices/src/main/org/jboss/wsf/container/jboss50/JAXWSDeployerHookPostJSE.java"
/>
<change type="NEW" beforePath=""
afterPath="/home/hbraun/dev/prj/jbossas/trunk/webservices/jboss50.iml" />
- <change type="MODIFICATION"
beforePath="$PROJECT_DIR$/src/main/java/org/jboss/rest/model/StatefulResourceResolver.java"
afterPath="$PROJECT_DIR$/src/main/java/org/jboss/rest/model/StatefulResourceResolver.java"
/>
<change type="MODIFICATION"
beforePath="/home/hbraun/dev/prj/jbossws/spi/trunk/version.properties"
afterPath="/home/hbraun/dev/prj/jbossws/spi/trunk/version.properties" />
<change type="MODIFICATION"
beforePath="/home/hbraun/dev/prj/jbossas/trunk/webservices/src/resources/jbossws-jboss50.deployer/META-INF/jbossws-deployer-beans.xml"
afterPath="/home/hbraun/dev/prj/jbossas/trunk/webservices/src/resources/jbossws-jboss50.deployer/META-INF/jbossws-deployer-beans.xml"
/>
<change type="MODIFICATION"
beforePath="$PROJECT_DIR$/jboss-rest.iws"
afterPath="$PROJECT_DIR$/jboss-rest.iws" />
- <change type="MODIFICATION"
beforePath="$PROJECT_DIR$/src/main/java/org/jboss/rest/model/RootResourceModel.java"
afterPath="$PROJECT_DIR$/src/main/java/org/jboss/rest/model/RootResourceModel.java"
/>
</list>
</component>
<component name="ChangeListSynchronizer" />
@@ -247,7 +245,17 @@
</subPane>
</component>
<component name="FileEditorManager">
- <leaf />
+ <leaf>
+ <file leaf-file-name="UriParamTestCase.java" pinned="false"
current="true" current-in-tab="true">
+ <entry
file="file://$PROJECT_DIR$/src/test/java/org/jboss/test/rest/invocation/uriparam/UriParamTestCase.java">
+ <provider selected="true"
editor-type-id="text-editor">
+ <state line="57" column="72"
selection-start="1810" selection-end="1810"
vertical-scroll-proportion="0.57378983">
+ <folding />
+ </state>
+ </provider>
+ </entry>
+ </file>
+ </leaf>
</component>
<component name="FindManager">
<FindUsagesManager>
@@ -692,7 +700,7 @@
<option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
- <option name="myItemId"
value="PsiDirectory:$PROJECT_DIR$/src/test/java/org/jboss/test/rest/media"
/>
+ <option name="myItemId"
value="PsiDirectory:$PROJECT_DIR$/src/test/java/org/jboss/test/rest/invocation"
/>
<option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
</PATH>
@@ -717,32 +725,34 @@
<option name="myItemId"
value="PsiDirectory:$PROJECT_DIR$/src/test" />
<option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
- </PATH>
- <PATH>
<PATH_ELEMENT>
- <option name="myItemId" value="jboss-rest.ipr" />
- <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+ <option name="myItemId"
value="PsiDirectory:$PROJECT_DIR$/src/test/java" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
- <option name="myItemId" value="jboss-rest" />
- <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
+ <option name="myItemId"
value="PsiDirectory:$PROJECT_DIR$/src/test/java/org" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
- <option name="myItemId"
value="PsiDirectory:$PROJECT_DIR$" />
+ <option name="myItemId"
value="PsiDirectory:$PROJECT_DIR$/src/test/java/org/jboss" />
<option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
- <option name="myItemId"
value="PsiDirectory:$PROJECT_DIR$/src" />
+ <option name="myItemId"
value="PsiDirectory:$PROJECT_DIR$/src/test/java/org/jboss/test" />
<option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
- <option name="myItemId"
value="PsiDirectory:$PROJECT_DIR$/src/main" />
+ <option name="myItemId"
value="PsiDirectory:$PROJECT_DIR$/src/test/java/org/jboss/test/rest" />
<option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
- <option name="myItemId"
value="PsiDirectory:$PROJECT_DIR$/src/main/resources" />
+ <option name="myItemId"
value="PsiDirectory:$PROJECT_DIR$/src/test/java/org/jboss/test/rest/invocation"
/>
<option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId"
value="PsiDirectory:$PROJECT_DIR$/src/test/java/org/jboss/test/rest/invocation/uriparam"
/>
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
@@ -762,23 +772,33 @@
<option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
- <option name="myItemId"
value="PsiDirectory:$PROJECT_DIR$/src/main" />
+ <option name="myItemId"
value="PsiDirectory:$PROJECT_DIR$/src/test" />
<option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
+ </PATH>
+ <PATH>
<PATH_ELEMENT>
- <option name="myItemId"
value="PsiDirectory:$PROJECT_DIR$/src/main/resources" />
+ <option name="myItemId" value="jboss-rest.ipr" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="jboss-rest" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId"
value="PsiDirectory:$PROJECT_DIR$" />
<option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
- <option name="myItemId"
value="PsiDirectory:$PROJECT_DIR$/src/main/resources/jbossrest.jar" />
+ <option name="myItemId"
value="PsiDirectory:$PROJECT_DIR$/src" />
<option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
- <option name="myItemId"
value="PsiDirectory:$PROJECT_DIR$/src/main/resources/jbossrest.jar/META-INF"
/>
+ <option name="myItemId"
value="PsiDirectory:$PROJECT_DIR$/src/main" />
<option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
- <option name="myItemId"
value="PsiDirectory:$PROJECT_DIR$/src/main/resources/jbossrest.jar/META-INF/services"
/>
+ <option name="myItemId"
value="PsiDirectory:$PROJECT_DIR$/src/main/resources" />
<option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
</PATH>
@@ -804,19 +824,19 @@
<option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
- <option name="myItemId"
value="PsiDirectory:$PROJECT_DIR$/src/main/java" />
+ <option name="myItemId"
value="PsiDirectory:$PROJECT_DIR$/src/main/resources" />
<option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
- <option name="myItemId"
value="PsiDirectory:$PROJECT_DIR$/src/main/java/org" />
+ <option name="myItemId"
value="PsiDirectory:$PROJECT_DIR$/src/main/resources/jbossrest.jar" />
<option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
- <option name="myItemId"
value="PsiDirectory:$PROJECT_DIR$/src/main/java/org/jboss" />
+ <option name="myItemId"
value="PsiDirectory:$PROJECT_DIR$/src/main/resources/jbossrest.jar/META-INF"
/>
<option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
- <option name="myItemId"
value="PsiDirectory:$PROJECT_DIR$/src/main/java/org/jboss/rest" />
+ <option name="myItemId"
value="PsiDirectory:$PROJECT_DIR$/src/main/resources/jbossrest.jar/META-INF/services"
/>
<option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
</PATH>
@@ -857,10 +877,6 @@
<option name="myItemId"
value="PsiDirectory:$PROJECT_DIR$/src/main/java/org/jboss/rest" />
<option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId"
value="PsiDirectory:$PROJECT_DIR$/src/main/java/org/jboss/rest/runtime" />
- <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
@@ -900,7 +916,7 @@
<option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
- <option name="myItemId"
value="PsiDirectory:$PROJECT_DIR$/src/main/java/org/jboss/rest/model" />
+ <option name="myItemId"
value="PsiDirectory:$PROJECT_DIR$/src/main/java/org/jboss/rest/runtime" />
<option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
</PATH>
@@ -1337,13 +1353,6 @@
</state>
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/src/test/java/org/jboss/test/rest/invocation/uriparam/UriParamTestCase.java">
- <provider selected="true" editor-type-id="text-editor">
- <state line="58" column="47"
selection-start="1783" selection-end="1783"
vertical-scroll-proportion="0.7020507">
- <folding />
- </state>
- </provider>
- </entry>
<entry
file="file://$PROJECT_DIR$/src/test/java/org/jboss/test/rest/invocation/uriparam/ItemResource.java">
<provider selected="true" editor-type-id="text-editor">
<state line="24" column="32"
selection-start="530" selection-end="530"
vertical-scroll-proportion="0.52714115">
@@ -1397,6 +1406,13 @@
</state>
</provider>
</entry>
+ <entry
file="file://$PROJECT_DIR$/src/test/java/org/jboss/test/rest/invocation/uriparam/UriParamTestCase.java">
+ <provider selected="true" editor-type-id="text-editor">
+ <state line="57" column="72"
selection-start="1810" selection-end="1810"
vertical-scroll-proportion="0.57378983">
+ <folding />
+ </state>
+ </provider>
+ </entry>
</component>
</project>
Modified:
rest/src/test/java/org/jboss/test/rest/invocation/uriparam/UriParamTestCase.java
===================================================================
---
rest/src/test/java/org/jboss/test/rest/invocation/uriparam/UriParamTestCase.java 2007-11-26
15:17:55 UTC (rev 5116)
+++
rest/src/test/java/org/jboss/test/rest/invocation/uriparam/UriParamTestCase.java 2007-11-26
15:21:19 UTC (rev 5117)
@@ -19,7 +19,10 @@
/**
* Root models that carry a template 'shop/{name}' need to provide
- * a prameter binding as well.
+ * a parameter binding as well.
+ *
+ * @see org.jboss.test.rest.invocation.uriparam.ShopResource
+ *
* @throws Exception
*/
public void testRootModelParameter() throws Exception
@@ -32,10 +35,12 @@
}
/**
- * Subresources may refer uri paramter that actually
+ * Subresources may refer to uri paramter that actually
* have been resolved in parent resources, i.e. 'shop/{name}/{category}',
* whereas {category} triggers a locator.
- *
+ *
+ * @see org.jboss.test.rest.invocation.uriparam.CategoryResource
+ *
* @throws Exception
*/
public void testParentParameter() throws Exception
@@ -49,9 +54,10 @@
/**
* Subresources may refer uri paramter that actually
- * have been resolved in parent resources, i.e. 'shop/{name}/{category}',
- * whereas {category} triggers a locator.
+ * have been resolved in parent resources, i.e. 'shop/{name}/{category}'
+ * and locators may pass this information along the invocatoin chain.
*
+ *
* @throws Exception
*/
public void testLocatorAndLocalParameter() throws Exception