Class RrpcRestOpContext
java.lang.Object
org.apache.juneau.marshall.Context
org.apache.juneau.rest.server.RestOpContext
org.apache.juneau.rest.server.rrpc.RrpcRestOpContext
- All Implemented Interfaces:
Comparable<RestOpContext>
A specialized "RRPC" HTTP methods.
RestOpContext for handling Notes:
- This class is thread safe and reusable.
See Also:
-
Field Summary
Fields inherited from class org.apache.juneau.rest.server.RestOpContext
context, headerPartMetas, method, mi, responseBeanMetasFields inherited from class org.apache.juneau.marshall.Context
CONTEXT_APPLY_FILTER -
Constructor Summary
ConstructorsConstructorDescriptionRrpcRestOpContext(Method method, RestContext context) Constructor.RrpcRestOpContext(Method method, RestContext context, Supplier<Object> resourceSupplier) Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncreateSession(RestSession session) Creates a new REST operation session.protected RrpcInterfaceMetagetMeta()Returns the metadata about the RRPC Java method.Methods inherited from class org.apache.juneau.rest.server.RestOpContext
compareTo, copy, createRequest, createResponse, equals, getAllowedParserOptions, getAllowedSerializerOptions, getAsyncCompletionExecutor, getAsyncTimeoutMillis, getContext, getDefaultCharset, getDefaultRequestAttributes, getDefaultRequestFormData, getDefaultRequestHeaders, getDefaultRequestQueryData, getDefaultResponseHeaders, getEncoders, getHttpMethod, getJavaMethod, getJsonSchemaGenerator, getLogger, getMarshallingContext, getMaxInput, getMetricName, getMetricTags, getOptionalMatchers, getParsers, getPartParser, getPartSerializer, getPathMatchers, getPathPattern, getRequiredMatchers, getResponseBeanMeta, getResponseHeaderMeta, getResponseMeta, getRestOpAnnotations, getSerializers, getSupportedAcceptTypes, getSupportedContentTypes, hashCode, isDebugMarshalling, isInherited, isObservabilityEnabled, isProblemDetails, isRead, isVirtualThreadsEnabled, match, propertiesMethods inherited from class org.apache.juneau.marshall.Context
createBuilder, createSession, getAnnotationProvider, getSession, init, isDebug, toString
-
Constructor Details
-
RrpcRestOpContext
public RrpcRestOpContext(Method method, RestContext context) throws jakarta.servlet.ServletException Constructor.- Parameters:
method- The Java method this context represents. Must not benull .context- The owningRestContext. Must not benull .- Throws:
jakarta.servlet.ServletException- If context could not be created.
-
RrpcRestOpContext
public RrpcRestOpContext(Method method, RestContext context, Supplier<Object> resourceSupplier) throws jakarta.servlet.ServletException Constructor.- Parameters:
method- The Java method this context represents. Must not benull .context- The owningRestContext. Must not benull .resourceSupplier- Supplier that returns the invocation target for this operation.- Throws:
jakarta.servlet.ServletException- If context could not be created.
-
-
Method Details
-
createSession
Description copied from class:RestOpContextCreates a new REST operation session.- Overrides:
createSessionin classRestOpContext- Parameters:
session- The REST session.- Returns:
- A new REST operation session.
-
getMeta
Returns the metadata about the RRPC Java method.- Returns:
- The metadata about the RRPC Java method.
-