Uses of Class
org.restlet.data.Method
-
Packages that use Method Package Description org.restlet Core classes of the API.org.restlet.data Information exchanged by components.org.restlet.engine.adapter Adapters between low-level HTTP calls and high-level Restlet Request and Response objects.org.restlet.engine.application Supports Restlet applications.org.restlet.engine.header Supports HTTP header parsing and formatting.org.restlet.engine.local Supports local connectors and resources.org.restlet.engine.resource Supports resources.org.restlet.ext.crypto.internal org.restlet.ext.javamail Integration with JavaMail @minor-version@ (POP3 and SMTP clients).org.restlet.ext.jaxrs.internal.client org.restlet.ext.jaxrs.internal.util org.restlet.ext.jaxrs.internal.wrappers org.restlet.ext.nio.internal.request org.restlet.ext.rdf Support for the RDF parsing and generation.org.restlet.ext.wadl Support the WADL specification.org.restlet.resource Client and server resource classes.org.restlet.security Classes related to security.org.restlet.service Services used by applications and components.org.restlet.util Various utility classes. -
-
Uses of Method in org.restlet
Fields in org.restlet declared as Method Modifier and Type Field Description private MethodRequest. accessControlRequestMethodUsed when issuing a preflight CORS request to let the origin server knows what method the client is willing to send in future request to this resource.private MethodRequest. methodThe method.Fields in org.restlet with type parameters of type Method Modifier and Type Field Description private java.util.Set<Method>Response. accessControlAllowMethodsWhen used as part of a response to a preflight CORS request, this lists the methods allowed by the actual request on the current resource.private java.util.Set<Method>Response. allowedMethodsThe set of methods allowed on the requested resource.Methods in org.restlet that return Method Modifier and Type Method Description MethodRequest. getAccessControlRequestMethod()Returns the method the client is willing to use in future request to this resource.MethodRequest. getMethod()Returns the method.Methods in org.restlet that return types with arguments of type Method Modifier and Type Method Description java.util.Set<Method>Response. getAccessControlAllowMethods()Returns the modifiable set of methods allowed by the actual request on the current resource when used as part of a response to a preflight CORS request
Note that when used with HTTP connectors, this property maps to the "Access-Control-Allow-Methods" header.java.util.Set<Method>Response. getAllowedMethods()Returns the modifiable set of methods allowed on the requested resource.Methods in org.restlet with parameters of type Method Modifier and Type Method Description voidRequest. setAccessControlRequestMethod(Method accessControlRequestMethod)Sets the method the client is willing to use in future request to this resource.voidRequest. setMethod(Method method)Sets the method called.Method parameters in org.restlet with type arguments of type Method Modifier and Type Method Description voidResponse. setAccessControlAllowMethods(java.util.Set<Method> accessControlAllowMethods)Sets the set of methods allowed by the actual request on the current resource when used as part of a response to a preflight CORS request.
Note that when used with HTTP connectors, this property maps to the "Access-Control-Allow-Methods" header.voidResponse. setAllowedMethods(java.util.Set<Method> allowedMethods)Sets the set of methods allowed on the requested resource.Constructors in org.restlet with parameters of type Method Constructor Description Request(Method method, java.lang.String resourceUri)Constructor.Request(Method method, java.lang.String resourceUri, Representation entity)Constructor.Request(Method method, Reference resourceRef)Constructor.Request(Method method, Reference resourceRef, Representation entity)Constructor. -
Uses of Method in org.restlet.data
Fields in org.restlet.data declared as Method Modifier and Type Field Description static MethodMethod. ALLPseudo-method use to match all methods.static MethodMethod. CONNECTUsed with a proxy that can dynamically switch to being a tunnel.static MethodMethod. COPYCreates a duplicate of the source resource, identified by the Request-URI, in the destination resource, identified by the URI in the Destination header.static MethodMethod. DELETERequests that the origin server deletes the resource identified by the request URI.static MethodMethod. GETRetrieves whatever information (in the form of an entity) that is identified by the request URI.static MethodMethod. HEADIdentical to GET except that the server must not return a message body in the response but only the message header.static MethodMethod. LOCKUsed to take out a lock of any access type on the resource identified by the request URI.static MethodMethod. MKCOLMKCOL creates a new collection resource at the location specified by the Request URI.static MethodMethod. MOVELogical equivalent of a copy, followed by consistency maintenance processing, followed by a delete of the source where all three actions are performed atomically.static MethodMethod. OPTIONSRequests for information about the communication options available on the request/response chain identified by the URI.static MethodMethod. PATCHRequests that the origin server applies partial modifications contained in the entity enclosed in the request to the resource identified by the request URI.static MethodMethod. POSTRequests that the origin server accepts the entity enclosed in the request as a new subordinate of the resource identified by the request URI.static MethodMethod. PROPFINDRetrieves properties defined on the resource identified by the request URI.static MethodMethod. PROPPATCHProcesses instructions specified in the request body to set and/or remove properties defined on the resource identified by the request URI.static MethodMethod. PUTRequests that the enclosed entity be stored under the supplied request URI.static MethodMethod. TRACEUsed to invoke a remote, application-layer loop-back of the request message.static MethodMethod. UNLOCKRemoves the lock identified by the lock token from the request URI, and all other resources included in the lock.Fields in org.restlet.data with type parameters of type Method Modifier and Type Field Description private static java.util.Map<java.lang.String,Method>Method. _methodsMap of registered methods.Methods in org.restlet.data that return Method Modifier and Type Method Description static MethodMethod. valueOf(java.lang.String name)Returns the method associated to a given method name.Methods in org.restlet.data with parameters of type Method Modifier and Type Method Description intMethod. compareTo(Method o)Compares this method to another.StatusConditions. getStatus(Method method, boolean entityExists, Tag tag, java.util.Date modificationDate)Returns the conditional status of a variant using a given method.StatusConditions. getStatus(Method method, RepresentationInfo representationInfo)Returns the conditional status of a variant using a given method.static voidMethod. register(Method method)Adds a new Method to the list of registered methods.Method parameters in org.restlet.data with type arguments of type Method Modifier and Type Method Description static voidMethod. sort(java.util.List<Method> methods)Sorts the given list of methods by name. -
Uses of Method in org.restlet.engine.adapter
Methods in org.restlet.engine.adapter that return Method Modifier and Type Method Description MethodHttpRequest. getAccessControlRequestMethod()Methods in org.restlet.engine.adapter with parameters of type Method Modifier and Type Method Description voidHttpRequest. setAccessControlRequestMethod(Method accessControlRequestMethod) -
Uses of Method in org.restlet.engine.application
Fields in org.restlet.engine.application with type parameters of type Method Modifier and Type Field Description private java.util.Set<Method>CorsFilter. defaultAllowedMethodsThe set of methods allowed by default, used whenCorsFilter.skippingResourceForCorsOptionsis turned on.Methods in org.restlet.engine.application that return types with arguments of type Method Modifier and Type Method Description java.util.Set<Method>CorsFilter. getDefaultAllowedMethods()Returns the list of methods allowed by default, used whenCorsFilter.skippingResourceForCorsOptionsis turned on.Method parameters in org.restlet.engine.application with type arguments of type Method Modifier and Type Method Description CorsFilterCorsFilter. setDefaultAllowedMethods(java.util.Set<Method> defaultAllowedMethods)Sets the list of methods allowed by default, used whenCorsFilter.skippingResourceForCorsOptionsis turned on. -
Uses of Method in org.restlet.engine.header
Methods in org.restlet.engine.header that return Method Modifier and Type Method Description MethodMethodReader. readValue()Methods in org.restlet.engine.header with parameters of type Method Modifier and Type Method Description MethodWriterMethodWriter. append(Method method)Method parameters in org.restlet.engine.header with type arguments of type Method Modifier and Type Method Description static voidMethodReader. addValues(Header header, java.util.Collection<Method> collection)Adds values to the given collection.static java.lang.StringMethodWriter. write(java.util.Set<Method> methods)Writes a set of methods with a comma separator. -
Uses of Method in org.restlet.engine.local
Methods in org.restlet.engine.local with parameters of type Method Modifier and Type Method Description protected java.util.List<Variant>DirectoryServerResource. getVariants(Method method)Returns the list of variants for the given method. -
Uses of Method in org.restlet.engine.resource
Fields in org.restlet.engine.resource declared as Method Modifier and Type Field Description private MethodMethodAnnotationInfo. restletMethodThe matching Restlet method.Methods in org.restlet.engine.resource that return Method Modifier and Type Method Description protected MethodAnnotationUtils. getRestletMethod(java.lang.annotation.Annotation annotation, java.lang.annotation.Annotation methodAnnotation)Returns an instance ofMethodaccording to the given annotations.MethodMethodAnnotationInfo. getRestletMethod()Returns the matching Restlet method.Methods in org.restlet.engine.resource with parameters of type Method Modifier and Type Method Description MethodAnnotationInfoAnnotationUtils. getMethodAnnotation(java.util.List<AnnotationInfo> annotations, Method restletMethod, Form query, Representation entity, MetadataService metadataService, ConverterService converterService)Returns the first annotation descriptor matching the given Restlet method.booleanMethodAnnotationInfo. isCompatible(Method restletMethod, Form queryParams, Representation requestEntity, MetadataService metadataService, ConverterService converterService)Indicates if the annotated method described is compatible with the given parameters.Constructors in org.restlet.engine.resource with parameters of type Method Constructor Description MethodAnnotationInfo(java.lang.Class<?> javaClass, Method restletMethod, java.lang.reflect.Method javaMethod, java.lang.String annotationValue)Constructor. -
Uses of Method in org.restlet.ext.crypto.internal
Methods in org.restlet.ext.crypto.internal with parameters of type Method Modifier and Type Method Description static java.lang.StringAwsUtils. getQuerySignature(Method method, Reference resourceRef, java.util.List<Parameter> params, char[] secret)Returns the AWS SimpleDB authentication compatible signature for the given request and secret.static java.lang.StringAwsUtils. getQueryStringToSign(Method method, Reference resourceRef, java.util.List<Parameter> params)Returns the SimpleDB string to sign. -
Uses of Method in org.restlet.ext.javamail
Fields in org.restlet.ext.javamail declared as Method Modifier and Type Field Description private MethodTriggerResource. targetMethodDeprecated.The method to invoke on the target resource.Methods in org.restlet.ext.javamail that return Method Modifier and Type Method Description MethodTriggerResource. getTargetMethod()Deprecated.Returns the default target method.protected MethodTriggerResource. getTargetMethod(Resolver<java.lang.String> resolver)Deprecated.Returns the target method according to a list of properties.Methods in org.restlet.ext.javamail with parameters of type Method Modifier and Type Method Description voidTriggerResource. setTargetMethod(Method targetMethod)Deprecated.Sets the default target method. -
Uses of Method in org.restlet.ext.jaxrs.internal.client
Methods in org.restlet.ext.jaxrs.internal.client that return Method Modifier and Type Method Description protected MethodJaxRsAnnotationUtils. getRestletMethod(java.lang.annotation.Annotation annotation, java.lang.annotation.Annotation methodAnnotation)Deprecated. -
Uses of Method in org.restlet.ext.jaxrs.internal.util
Methods in org.restlet.ext.jaxrs.internal.util with parameters of type Method Modifier and Type Method Description static ResourceMethodAlgorithmUtil. getBestMethod(java.util.Collection<ResourceMethod> unsortedResourceMethods, MediaType givenMediaType, SortedMetadata<MediaType> accMediaTypes, Method requHttpMethod)Deprecated.Sort by using the media type of input data as the primary key and the media type of output data as the secondary key.
Sorting of media types follows the general rule: x/y < x/* < */*, i.e.static voidAlgorithmUtil. removeNotSupportedHttpMethod(java.util.Collection<ResourceMethod> resourceMethods, Method httpMethod, boolean alsoGet)Deprecated.Removes theResourceMethods from the collection, that do not support the given HTTP method.Method parameters in org.restlet.ext.jaxrs.internal.util with type arguments of type Method Modifier and Type Method Description voidExceptionHandler. methodNotAllowed(java.util.Set<Method> allowedMethods)Deprecated. -
Uses of Method in org.restlet.ext.jaxrs.internal.wrappers
Fields in org.restlet.ext.jaxrs.internal.wrappers declared as Method Modifier and Type Field Description private MethodResourceMethod. httpMethodDeprecated.Fields in org.restlet.ext.jaxrs.internal.wrappers with type parameters of type Method Modifier and Type Field Description private java.util.Map<RemainingPath,java.util.Set<Method>>ResourceClass. allowedMethodsDeprecated.Caches the allowed methods (unmodifiable) for given remainingParts.Methods in org.restlet.ext.jaxrs.internal.wrappers that return Method Modifier and Type Method Description MethodResourceMethod. getHttpMethod()Deprecated.(package private) static MethodWrapperUtil. getHttpMethod(java.lang.reflect.Method javaMethod)Deprecated.Returns the HTTP method related to the given java method.Methods in org.restlet.ext.jaxrs.internal.wrappers that return types with arguments of type Method Modifier and Type Method Description java.util.Set<Method>ResourceClass. getAllowedMethods(RemainingPath remainingPath)Deprecated.Returns the allowed methods on the remainingPart.Methods in org.restlet.ext.jaxrs.internal.wrappers with parameters of type Method Modifier and Type Method Description booleanResourceMethod. isHttpMethodSupported(Method requestedMethod)Deprecated.booleanResourceMethod. isHttpMethodSupported(Method requestedMethod, boolean alsoGet)Deprecated.Checks, if this method suppors the given HTTP method.Constructors in org.restlet.ext.jaxrs.internal.wrappers with parameters of type Method Constructor Description ResourceMethod(java.lang.reflect.Method executeMethod, java.lang.reflect.Method annotatedMethod, ResourceClass resourceClass, Method httpMethod, ThreadLocalizedContext tlContext, JaxRsProviders jaxRsProviders, ExtensionBackwardMapping extensionBackwardMapping, java.util.logging.Logger logger)Deprecated.Creates a wrapper for a resource method. -
Uses of Method in org.restlet.ext.nio.internal.request
Methods in org.restlet.ext.nio.internal.request that return Method Modifier and Type Method Description MethodHttpInboundRequest. getAccessControlRequestMethod()Deprecated.Methods in org.restlet.ext.nio.internal.request with parameters of type Method Modifier and Type Method Description voidHttpInboundRequest. setAccessControlRequestMethod(Method accessControlRequestMethod)Deprecated. -
Uses of Method in org.restlet.ext.rdf
Constructors in org.restlet.ext.rdf with parameters of type Method Constructor Description RdfClientResource(Context context, Method method, java.lang.String uri)Constructor.RdfClientResource(Context context, Method method, java.net.URI uri)Constructor.RdfClientResource(Context context, Method method, Reference reference)Constructor.RdfClientResource(Method method, java.lang.String uri)Constructor.RdfClientResource(Method method, java.net.URI uri)Constructor.RdfClientResource(Method method, Reference reference)Constructor. -
Uses of Method in org.restlet.ext.wadl
Fields in org.restlet.ext.wadl declared as Method Modifier and Type Field Description private MethodMethodInfo. nameDeprecated.Name of the method.Methods in org.restlet.ext.wadl that return Method Modifier and Type Method Description MethodMethodInfo. getName()Deprecated.Returns the name of the method.Methods in org.restlet.ext.wadl with parameters of type Method Modifier and Type Method Description booleanWadlServerResource. canDescribe(Method method)Deprecated.Indicates if the given method exposes its WADL description.protected voidWadlServerResource. describeMethod(Method method, MethodInfo info)Deprecated.Returns a WADL description of the given method.voidMethodInfo. setName(Method name)Deprecated.Sets the name of the method. -
Uses of Method in org.restlet.resource
Methods in org.restlet.resource that return Method Modifier and Type Method Description MethodResource. getMethod()Returns the method.Methods in org.restlet.resource that return types with arguments of type Method Modifier and Type Method Description java.util.Set<Method>Resource. getAllowedMethods()Returns the set of methods allowed for the current client by the resource.Methods in org.restlet.resource with parameters of type Method Modifier and Type Method Description private RepresentationServerResource. doHandle(Method method, Form query, Representation entity)Handles a call and checks the request's method and entity.protected MethodAnnotationInfoServerResource. getAnnotation(Method method)Returns the first annotation descriptor matching the given method.protected MethodAnnotationInfoServerResource. getAnnotation(Method method, Form query, Representation entity)Returns the first annotation descriptor matching the given method.protected java.util.List<Variant>ServerResource. getVariants(Method method)Returns a modifiable list of exposed variants for the given method.protected RepresentationClientResource. handle(Method method)Handles the call by cloning the prototype request, setting the method and entity.protected <T> TClientResource. handle(Method method, java.lang.Class<T> resultClass)Handles the call by cloning the prototype request, setting the method and entity.protected <T> TClientResource. handle(Method method, java.lang.Object entity, java.lang.Class<T> resultClass)Handles an object entity.protected RepresentationClientResource. handle(Method method, MediaType mediaType)Handles the call by cloning the prototype request, setting the method and entity.protected RepresentationClientResource. handle(Method method, Representation entity)Handles the call by cloning the prototype request, setting the method and entity.protected RepresentationClientResource. handle(Method method, Representation entity, ClientInfo clientInfo)Handles the call by cloning the prototype request, setting the method and entity.protected RepresentationClientResource. handle(Method method, Representation entity, MediaType mediaType)Handles the call by cloning the prototype request, setting the method and entity.voidClientResource. setMethod(Method method)Sets the method called.Method parameters in org.restlet.resource with type arguments of type Method Modifier and Type Method Description voidServerResource. setAllowedMethods(java.util.Set<Method> allowedMethods)Sets the set of methods allowed on the requested resource.Constructors in org.restlet.resource with parameters of type Method Constructor Description ClientResource(Context context, Method method, java.lang.String uri)Constructor.ClientResource(Context context, Method method, java.net.URI uri)Constructor.ClientResource(Context context, Method method, Reference reference)Constructor.ClientResource(Method method, java.lang.String uri)Constructor.ClientResource(Method method, java.net.URI uri)Constructor.ClientResource(Method method, Reference reference)Constructor. -
Uses of Method in org.restlet.security
Fields in org.restlet.security with type parameters of type Method Modifier and Type Field Description private java.util.List<Method>MethodAuthorizer. anonymousMethodsThe modifiable list of methods authorized for anonymous users.private java.util.List<Method>MethodAuthorizer. authenticatedMethodsThe modifiable list of methods authorized for authenticated users.Methods in org.restlet.security that return types with arguments of type Method Modifier and Type Method Description java.util.List<Method>MethodAuthorizer. getAnonymousMethods()Returns the modifiable list of methods authorized for anonymous users.java.util.List<Method>MethodAuthorizer. getAuthenticatedMethods()Returns the modifiable list of methods authorized for authenticated users.Method parameters in org.restlet.security with type arguments of type Method Modifier and Type Method Description voidMethodAuthorizer. setAnonymousMethods(java.util.List<Method> anonymousMethods)Sets the modifiable list of methods authorized for anonymous users.voidMethodAuthorizer. setAuthenticatedMethods(java.util.List<Method> authenticatedMethods)Sets the modifiable list of methods authorized for authenticated users. -
Uses of Method in org.restlet.service
Fields in org.restlet.service with type parameters of type Method Modifier and Type Field Description private java.util.Set<Method>CorsService. defaultAllowedMethodsThe set of methods allowed by default, used whenCorsService.skippingResourceForCorsOptionsis turned on.Methods in org.restlet.service that return types with arguments of type Method Modifier and Type Method Description java.util.Set<Method>CorsService. getDefaultAllowedMethods()Returns the list of methods allowed by default, used whenCorsService.skippingResourceForCorsOptionsis turned on.Method parameters in org.restlet.service with type arguments of type Method Modifier and Type Method Description voidCorsService. setDefaultAllowedMethods(java.util.Set<Method> defaultAllowedMethods)Sets the list of methods allowed by default, used whenCorsService.skippingResourceForCorsOptionsis turned on. -
Uses of Method in org.restlet.util
Methods in org.restlet.util that return Method Modifier and Type Method Description MethodWrapperRequest. getAccessControlRequestMethod()Returns the access control request method of the target resource.MethodWrapperRequest. getMethod()Returns the method.Methods in org.restlet.util that return types with arguments of type Method Modifier and Type Method Description java.util.Set<Method>WrapperResponse. getAllowedMethods()Returns the set of methods allowed on the requested resource.Methods in org.restlet.util with parameters of type Method Modifier and Type Method Description voidWrapperRequest. setAccessControlRequestMethod(Method accessControlRequestMethod)Sets the access control request method of the target resource.voidWrapperRequest. setMethod(Method method)Sets the method called.Method parameters in org.restlet.util with type arguments of type Method Modifier and Type Method Description voidWrapperResponse. setAllowedMethods(java.util.Set<Method> allowedMethods)
-