public Resource createCommandResourceWadl() {
		final Resource resource = new Resource();
		resource.setPath(getName());

		final Method method = new Method();
		method.setName("POST");
		resource.getMethodOrResource().add(method);

		definePostMethodWadl(method);

		return resource;
	}
public Resource createCommandResourceWadl() {
		final Resource resource = new Resource();
		resource.setPath(getName());

		final Method method = new Method();
		method.setName("POST");
		resource.getMethodOrResource().add(method);

		definePostMethodWadl(method);

		return resource;
	}
public Resource createCommandResourceWadl ( ) { final Resource resource = new Resource ( ) ; resource . setPath ( getName ( ) ) ; final Method method = new Method ( ) ; method . setName ( "POST" ) ; resource . getMethodOrResource ( ) . add ( method ) ; definePostMethodWadl ( method ) ; return resource ; }
Creates a relative resource for this command. The resource path is set to the command name, and a POST method is added:

<code>
<resource path="command-name">
<method name="POST"></method>
</resource>
</code>

Override this method to further describe the REST API for the is command. For example:

<ul>
<li>you may want add documentation, via Doc elements</li>
<li>describe further HTTP error responses</li>
</ul>

@return
Creates a relative resource for this command . The resource path is set to the command name and a POST method is added :