public class WebServiceResource extends StringConditionResource
The supported web services are REST, WEBHANDLER and SOAP. The syntax is enforced only for exact matches:
REST:HTTP-METHOD:/path/to/api
WEBHANDLER:HTTP-METHOD:/path/to/api
SOAP:HTTP-METHOD:/path/to/endpoint:namespace/binding/operation
The web service path or SOAP endpoint are all relative to the basepath, and any address
set
at the service implementation LegacyService.address()
annotation. So, if the basepath is
/rest/
and the address set is foo
, the resolved path is
/rest/foo/path/to/api
.
For SOAP, the target operation must be specified via the namespace/binding/operation
triplet.
objectPointer, resourceIndex, sm
Constructor and Description |
---|
WebServiceResource() |
Modifier and Type | Method and Description |
---|---|
Rights |
getRightsInstance(java.lang.Object[] rights)
Instantiates a plugin's class that implements the
Rights interface, using
the array of objects representing a set of access rights fields. |
java.lang.String |
getTypeName()
Returns the plugin resource type name as a string.
|
boolean |
isInstanceNameValid(java.lang.String resource)
Checks whether a given string is a valid resource name for this resource type.
|
describeRights, isAllowed, isRightsSetValid
associate, attach, disassociate, getEnclosingScope, getLibrary, getLink, getPermissions, init, refresh, registeredAs, toString
public java.lang.String getTypeName()
getTypeName
in interface Resource
getTypeName
in class StringConditionResource
public Rights getRightsInstance(java.lang.Object[] rights)
Rights
interface, using
the array of objects representing a set of access rights fields.getRightsInstance
in interface Resource
getRightsInstance
in class StringConditionResource
rights
- The objects needed to create an access rights instance.public boolean isInstanceNameValid(java.lang.String resource)
isInstanceNameValid
in interface Resource
isInstanceNameValid
in class StringConditionResource
resource
- A string naming a resource.true
if the name is syntactically correct.