Uses of Class
org.restlet.data.Method
Packages that use Method
Package
Description
Core classes of the Restlet API.
Information exchanged by components.
Adapters between low-level HTTP calls and high-level Restlet Request and
Response objects.
Supports Restlet applications.
Supports HTTP header parsing and formatting.
Supports local connectors and resources.
Supports resources.
Client and server resource classes.
Classes related to security.
Services used by applications and components.
Various utility classes.
-
Uses of Method in org.restlet
Methods in org.restlet that return MethodModifier and TypeMethodDescriptionRequest.getAccessControlRequestMethod()Returns the method the client is willing to use in future request to this resource.Request.getMethod()Returns the method.Methods in org.restlet that return types with arguments of type MethodModifier and TypeMethodDescriptionResponse.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.Response.getAllowedMethods()Returns the modifiable set of methods allowed on the requested resource.Methods in org.restlet with parameters of type MethodModifier and TypeMethodDescriptionvoidRequest.setAccessControlRequestMethod(Method accessControlRequestMethod) Sets the method the client is willing to use in future request to this resource.voidSets the method called.Method parameters in org.restlet with type arguments of type MethodModifier and TypeMethodDescriptionvoidResponse.setAccessControlAllowMethods(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(Set<Method> allowedMethods) Sets the set of methods allowed on the requested resource.Constructors in org.restlet with parameters of type MethodModifierConstructorDescriptionConstructor.Request(Method method, String resourceUri, Representation entity) Constructor.Constructor.Request(Method method, Reference resourceRef, Representation entity) Constructor. -
Uses of Method in org.restlet.data
Fields in org.restlet.data declared as MethodModifier and TypeFieldDescriptionstatic final MethodMethod.ALLPseudo-method use to match all methods.static final MethodMethod.CONNECTUsed with a proxy that can dynamically switch to being a tunnel.static final MethodMethod.DELETERequests that the origin server deletes the resource identified by the request URI.static final MethodMethod.GETRetrieves whatever information (in the form of an entity) that is identified by the request URI.static final MethodMethod.HEADIdentical to GET except that the server must not return a message body in the response but only the message header.static final MethodMethod.OPTIONSRequests for information about the communication options available on the request/response chain identified by the URI.static final 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 final 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 final MethodMethod.PUTRequests that the enclosed entity be stored under the supplied request URI.static final MethodMethod.TRACEUsed to invoke a remote, application-layer loop-back of the request message.Methods in org.restlet.data that return MethodModifier and TypeMethodDescriptionstatic MethodReturns the method associated to a given method name.Methods in org.restlet.data with parameters of type MethodModifier and TypeMethodDescriptionintCompares this method to another.Returns the conditional status of a variant using a given method.Conditions.getStatus(Method method, RepresentationInfo representationInfo) Returns the conditional status of a variant using a given method.static voidAdds a new Method to the list of registered methods.Method parameters in org.restlet.data with type arguments of type Method -
Uses of Method in org.restlet.engine.adapter
Methods in org.restlet.engine.adapter that return MethodMethods in org.restlet.engine.adapter with parameters of type MethodModifier and TypeMethodDescriptionvoidHttpRequest.setAccessControlRequestMethod(Method accessControlRequestMethod) -
Uses of Method in org.restlet.engine.application
Methods in org.restlet.engine.application that return types with arguments of type MethodModifier and TypeMethodDescriptionCorsFilter.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 MethodModifier and TypeMethodDescriptionCorsFilter.setDefaultAllowedMethods(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 MethodMethods in org.restlet.engine.header with parameters of type MethodMethod parameters in org.restlet.engine.header with type arguments of type Method -
Uses of Method in org.restlet.engine.local
Methods in org.restlet.engine.local with parameters of type MethodModifier and TypeMethodDescriptionDirectoryServerResource.getVariants(Method method) Returns the list of variants for the given method. -
Uses of Method in org.restlet.engine.resource
Methods in org.restlet.engine.resource that return MethodModifier and TypeMethodDescriptionprotected MethodAnnotationUtils.getRestletMethod(Annotation annotation, Annotation methodAnnotation) Returns an instance ofMethodaccording to the given annotations.MethodAnnotationInfo.getRestletMethod()Returns the matching Restlet method.Methods in org.restlet.engine.resource with parameters of type MethodModifier and TypeMethodDescriptionAnnotationUtils.getMethodAnnotation(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 MethodModifierConstructorDescriptionMethodAnnotationInfo(Class<?> javaClass, Method restletMethod, Method javaMethod, String annotationValue) Constructor. -
Uses of Method in org.restlet.resource
Methods in org.restlet.resource that return MethodMethods in org.restlet.resource that return types with arguments of type MethodModifier and TypeMethodDescriptionResource.getAllowedMethods()Returns the set of methods allowed for the current client by the resource.Methods in org.restlet.resource with parameters of type MethodModifier and TypeMethodDescriptionprotected 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.ServerResource.getVariants(Method method) Returns a modifiable list of exposed variants for the given method.protected RepresentationHandles the call by cloning the prototype request, setting the method and entity.protected <T> THandles the call by cloning the prototype request, setting the method and entity.protected <T> THandles an object entity.protected RepresentationHandles 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.voidSets the method called.Method parameters in org.restlet.resource with type arguments of type MethodModifier and TypeMethodDescriptionvoidServerResource.setAllowedMethods(Set<Method> allowedMethods) Sets the set of methods allowed on the requested resource.Constructors in org.restlet.resource with parameters of type MethodModifierConstructorDescriptionClientResource(Context context, Method method, String uri) Constructor.ClientResource(Context context, Method method, URI uri) Constructor.ClientResource(Context context, Method method, Reference reference) Constructor.ClientResource(Method method, String uri) Constructor.ClientResource(Method method, URI uri) Constructor.ClientResource(Method method, Reference reference) Constructor. -
Uses of Method in org.restlet.security
Methods in org.restlet.security that return types with arguments of type MethodModifier and TypeMethodDescriptionMethodAuthorizer.getAnonymousMethods()Returns the modifiable list of methods authorized for anonymous users.MethodAuthorizer.getAuthenticatedMethods()Returns the modifiable list of methods authorized for authenticated users.Method parameters in org.restlet.security with type arguments of type MethodModifier and TypeMethodDescriptionvoidMethodAuthorizer.setAnonymousMethods(List<Method> anonymousMethods) Sets the modifiable list of methods authorized for anonymous users.voidMethodAuthorizer.setAuthenticatedMethods(List<Method> authenticatedMethods) Sets the modifiable list of methods authorized for authenticated users. -
Uses of Method in org.restlet.service
Methods in org.restlet.service that return types with arguments of type MethodModifier and TypeMethodDescriptionCorsService.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 MethodModifier and TypeMethodDescriptionvoidCorsService.setDefaultAllowedMethods(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 MethodModifier and TypeMethodDescriptionWrapperRequest.getAccessControlRequestMethod()Returns the access control request method of the target resource.WrapperRequest.getMethod()Returns the method.Methods in org.restlet.util that return types with arguments of type MethodModifier and TypeMethodDescriptionWrapperResponse.getAllowedMethods()Returns the set of methods allowed on the requested resource.Methods in org.restlet.util with parameters of type MethodModifier and TypeMethodDescriptionvoidWrapperRequest.setAccessControlRequestMethod(Method accessControlRequestMethod) Sets the access control request method of the target resource.voidSets the method called.Method parameters in org.restlet.util with type arguments of type MethodModifier and TypeMethodDescriptionvoidWrapperResponse.setAllowedMethods(Set<Method> allowedMethods)