Annotation Type PathTemplate
-
@Retention(RUNTIME) @Target(TYPE) @Documented public @interface PathTemplateDescribes the URI pattern of resources that a typeDispatches. The syntax of the pattern MUST conform to the syntax of Route Patterns.- Author:
- cdivilly
-
-
Field Summary
Fields Modifier and Type Fields Description static intDEFAULT_PRIORITYDefault priority value
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.StringvalueThe Route pattern
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.String[]acceptsEnumerates the sets of media types that this resource can accept for requests that may contain a resource body (e.g.java.lang.String[]allowedOriginsThe set of Web Origins that can access this resource viaCORSHTTPAuthenticationScheme[]authSchemesOptionally specify the HTTP Authentication Schemes that this pattern can dispatch.CrossOriginSharingPolicycorsIdentifies if the resource can be accessed viaCORSor not.java.lang.StringdeprecatedSinceThe version that this resource was deprecated in.DocumentationPolicydocumentationDescribes how this resource is documented.FramePolicyframeOptionsDefines if the resource can be framedjava.lang.StringintroducedSinceThe version that this resource was introduced in.java.lang.String[]methodsOptionally specify the HTTP methods that this pattern can dispatchjava.lang.StringnameOptionally assign a mnemonic name to the path templatebooleanoverlapsSet this attribute to true if this resource may overlap with other (possibly user defined resources)intpageSizeFor resources that may be paginated indicates the number of items to display per page.PaginationStrategypaginationDescribes how a resource is paginated.PathSyntaxPolicypathValidationDescribes how path portion of the request URI should be validated.java.lang.StringremovedSinceThe version that this resource was removed from.java.lang.StringrequiresPrivilegeIdentifies the name of thePrivilegethat protects this URI patternTransportPolicytransportDescribes the transport level security requirements for this URI pattern
-
-
-
-
accepts
java.lang.String[] accepts
Enumerates the sets of media types that this resource can accept for requests that may contain a resource body (e.g. PUT, POST). The media type specification MAY contain wildcards An empty array (the default) indicates that the resource accepts any media type- Returns:
- The acceptable media types
- Default:
- {}
-
-
-
cors
CrossOriginSharingPolicy cors
Identifies if the resource can be accessed viaCORSor not. Note the default isCrossOriginSharingPolicy.ALLOW.- Returns:
- The
CrossOriginSharingPolicy
- Default:
- oracle.dbtools.plugin.api.http.annotations.CrossOriginSharingPolicy.INHERIT
-
-
-
allowedOrigins
java.lang.String[] allowedOrigins
The set of Web Origins that can access this resource viaCORS- Returns:
- Array of Web Origins
- Default:
- {}
-
-
-
documentation
DocumentationPolicy documentation
Describes how this resource is documented.- Returns:
DocumentationPolicyinstance
- Default:
- oracle.dbtools.plugin.api.http.annotations.DocumentationPolicy.AUTHORIZED
-
-
-
pathValidation
PathSyntaxPolicy pathValidation
Describes how path portion of the request URI should be validated.- Returns:
PathSyntaxPolicyinstance
- Default:
- oracle.dbtools.plugin.api.http.annotations.PathSyntaxPolicy.CHECK
-
-
-
frameOptions
FramePolicy frameOptions
Defines if the resource can be framed- Returns:
FramePolicyinstance
- Default:
- oracle.dbtools.plugin.api.http.annotations.FramePolicy.SAME_ORIGIN
-
-
-
authSchemes
HTTPAuthenticationScheme[] authSchemes
Optionally specify the HTTP Authentication Schemes that this pattern can dispatch. Currently only one explicit HTTPAuthenticationScheme is defined (HTTPAuthenticationScheme.BASIC). It is imagined that in the future we will support more defined HTTPAuthenticationSchemes so an Array is used here.- Returns:
- supported Auth Schemes
- Default:
- {oracle.dbtools.plugin.api.http.annotations.HTTPAuthenticationScheme.ANY}
-
-
-
name
java.lang.String name
Optionally assign a mnemonic name to the path template- Returns:
- mnemonic that uniquely identifies this
PathTemplate - See Also:
PathTemplateMatch.name()
- Default:
- ""
-
-
-
pagination
PaginationStrategy pagination
Describes how a resource is paginated.- Returns:
PaginationStrategyinstance
- Default:
- oracle.dbtools.plugin.api.pagination.PaginationStrategy.NONE
-
-
-
requiresPrivilege
java.lang.String requiresPrivilege
Identifies the name of thePrivilegethat protects this URI pattern- Returns:
- privilege name
- Default:
- ""
-
-
-
transport
TransportPolicy transport
Describes the transport level security requirements for this URI pattern- Returns:
TransportPolicyinstance
- Default:
- oracle.dbtools.plugin.api.security.annotations.TransportPolicy.ANY
-
-
-
introducedSince
java.lang.String introducedSince
The version that this resource was introduced in. If not specified then it's value is inherited from theHttpServlet'sIntroducedSinceannotation or the plugin identified byBelongsTo'sIntroducedSinceannotation- Returns:
- Version number string
- See Also:
IntroducedSince
- Default:
- ""
-
-
-
deprecatedSince
java.lang.String deprecatedSince
The version that this resource was deprecated in. If not specified then it's value is inherited from theHttpServlet'sIntroducedSinceannotation or the plugin identified byBelongsTo'sIntroducedSinceannotation. If no value is inherited then the resource is not deprecated- Returns:
- Version number string
- See Also:
DeprecatedSince
- Default:
- ""
-
-
-
removedSince
java.lang.String removedSince
The version that this resource was removed from. If not specified then it's value is inherited from theHttpServlet'sRemovedSinceannotation. If no value is inherited then the resource has not been removed.- Returns:
- Version number string
- See Also:
RemovedSince
- Default:
- ""
-
-