Package org.apache.juneau.rest
Class RestOperations
java.lang.Object
org.apache.juneau.rest.RestOperations
- Direct Known Subclasses:
RestOperations.Void
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class.final classRepresents a null value for the RestOperations class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RestOperations.BuilderStatic 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.
-