Package org.apache.juneau.rest
Class RestOperations
java.lang.Object
org.apache.juneau.rest.RestOperations
- Direct Known Subclasses:
RestOperations.Void
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder class.final class
Represents a null value for theRest.restOperationsClass()
annotation. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic RestOperations.Builder
Static creator.findOperation
(RestSession session) Finds the method that should handle the specified call.Returns the list of method contexts in this object.
-
Constructor Details
-
RestOperations
Constructor.- Parameters:
builder
- The builder containing the settings for this object.
-
-
Method Details
-
create
Static creator.- Parameters:
beanStore
- The bean store to use for creating beans.- Returns:
- A new builder for this object.
-
findOperation
public RestOpContext findOperation(RestSession session) throws MethodNotAllowed, PreconditionFailed, NotFound Finds the method that should handle the specified call.- Parameters:
session
- The HTTP call.- Returns:
- The method that should handle the specified call.
- Throws:
MethodNotAllowed
- If no methods implement the requested HTTP method.PreconditionFailed
- At least one method was found but it didn't match one or more matchers.NotFound
- HTTP method match was found but matching path was not.
-
getOpContexts
Returns the list of method contexts in this object.- Returns:
- An unmodifiable list of method contexts in this object.
-