Index
All Classes and Interfaces|All Packages|Serialized Form
A
- apply(Context, Throwable, StatusCode) - Method in class io.jooby.trpc.TrpcErrorHandler
-
Applies the tRPC error formatting if the request is a tRPC call.
B
- BAD_REQUEST - Enum constant in enum class io.jooby.trpc.TrpcErrorCode
-
Invalid routing or parameters.
C
- CLIENT_CLOSED_REQUEST - Enum constant in enum class io.jooby.trpc.TrpcErrorCode
-
The client disconnected before the server could respond.
- CONFLICT - Enum constant in enum class io.jooby.trpc.TrpcErrorCode
-
State conflict, such as a duplicate database entry.
D
- data() - Method in record class io.jooby.trpc.TrpcResponse
-
Returns the value of the
datarecord component. - decode(String, byte[]) - Method in interface io.jooby.trpc.TrpcDecoder
-
Decodes a raw byte array payload into the target Java object.
- decode(String, String) - Method in interface io.jooby.trpc.TrpcDecoder
-
Decodes a string payload into the target Java object.
- decoder(Type) - Method in interface io.jooby.trpc.TrpcParser
-
Resolves and caches a type-specific deserializer during route initialization.
E
- empty() - Static method in record class io.jooby.trpc.TrpcResponse
-
Creates an empty tRPC success envelope.
- equals(Object) - Method in record class io.jooby.trpc.TrpcResponse
-
Indicates whether some other object is "equal to" this one.
F
- FORBIDDEN - Enum constant in enum class io.jooby.trpc.TrpcErrorCode
-
Authenticated user lacks required permissions.
G
- getProcedure() - Method in exception class io.jooby.trpc.TrpcException
-
Gets the name of the tRPC procedure that threw this exception.
- getRpcCode() - Method in enum class io.jooby.trpc.TrpcErrorCode
-
Retrieves the JSON-RPC style integer code.
- getStatusCode() - Method in enum class io.jooby.trpc.TrpcErrorCode
-
Retrieves the corresponding HTTP status code.
- getStatusCode() - Method in exception class io.jooby.trpc.TrpcException
-
Gets the HTTP status code associated with this error.
H
- hashCode() - Method in record class io.jooby.trpc.TrpcResponse
-
Returns a hash code value for this object.
I
- install(Jooby) - Method in class io.jooby.trpc.TrpcModule
-
Installs the tRPC extension into the Jooby application.
- install(String, Jooby) - Method in interface io.jooby.trpc.TrpcService
-
Install generate tRPC routes.
- INTERNAL_SERVER_ERROR - Enum constant in enum class io.jooby.trpc.TrpcErrorCode
-
Internal server error.
- io.jooby.annotation.trpc - package io.jooby.annotation.trpc
- io.jooby.trpc - module io.jooby.trpc
- io.jooby.trpc - package io.jooby.trpc
M
- METHOD_NOT_SUPPORTED - Enum constant in enum class io.jooby.trpc.TrpcErrorCode
-
The HTTP method used is not supported by the procedure (e.g., GET on a mutation).
N
- nextBoolean(String) - Method in interface io.jooby.trpc.TrpcReader
-
Reads the next token in the stream as a primitive boolean.
- nextDouble(String) - Method in interface io.jooby.trpc.TrpcReader
-
Reads the next token in the stream as a primitive 64-bit floating-point number.
- nextInt(String) - Method in interface io.jooby.trpc.TrpcReader
-
Reads the next token in the stream as a primitive 32-bit integer.
- nextIsNull(String) - Method in interface io.jooby.trpc.TrpcReader
-
Peeks at the next token in the JSON stream to determine if it is a literal
null. - nextLong(String) - Method in interface io.jooby.trpc.TrpcReader
-
Reads the next token in the stream as a primitive 64-bit integer.
- nextObject(String, TrpcDecoder<T>) - Method in interface io.jooby.trpc.TrpcReader
-
Reads the next token (which may be a complex JSON object or array) and deserializes it using a pre-resolved type decoder.
- nextString(String) - Method in interface io.jooby.trpc.TrpcReader
-
Reads the next token in the stream as a String.
- NOT_FOUND - Enum constant in enum class io.jooby.trpc.TrpcErrorCode
-
The requested resource or tRPC procedure was not found.
O
- of(StatusCode) - Static method in enum class io.jooby.trpc.TrpcErrorCode
-
Resolves the closest tRPC error code for a given Jooby HTTP status code.
- of(T) - Static method in record class io.jooby.trpc.TrpcResponse
-
Wraps a non-null payload into a compliant tRPC success envelope.
P
- PARSE_ERROR - Enum constant in enum class io.jooby.trpc.TrpcErrorCode
-
The server received invalid JSON.
- PAYLOAD_TOO_LARGE - Enum constant in enum class io.jooby.trpc.TrpcErrorCode
-
The incoming request payload exceeds the allowed limits.
- PRECONDITION_FAILED - Enum constant in enum class io.jooby.trpc.TrpcErrorCode
-
The client's preconditions were not met.
R
- reader(byte[], boolean) - Method in interface io.jooby.trpc.TrpcParser
-
Creates a stateful, sequential reader for extracting tRPC arguments from a raw byte payload.
- reader(String, boolean) - Method in interface io.jooby.trpc.TrpcParser
-
Creates a stateful, sequential reader for extracting tRPC arguments from a string payload.
- requireNext(String) - Method in interface io.jooby.trpc.TrpcReader
-
Asserts that the next token in the sequence is not null.
T
- TIMEOUT - Enum constant in enum class io.jooby.trpc.TrpcErrorCode
-
The request took too long to process.
- toMap() - Method in exception class io.jooby.trpc.TrpcException
-
Serializes the exception into the exact JSON structure expected by the tRPC protocol.
- TOO_MANY_REQUESTS - Enum constant in enum class io.jooby.trpc.TrpcErrorCode
-
Rate limiting applied.
- toString() - Method in record class io.jooby.trpc.TrpcResponse
-
Returns a string representation of this record class.
- Trpc - Annotation Interface in io.jooby.annotation.trpc
-
Marks a controller class or a specific route method for tRPC TypeScript generation.
- Trpc.Mutation - Annotation Interface in io.jooby.annotation.trpc
-
Marks a method as a tRPC mutation.
- Trpc.Query - Annotation Interface in io.jooby.annotation.trpc
-
Marks a method as a tRPC query.
- TrpcDecoder<T> - Interface in io.jooby.trpc
-
A pre-resolved decoder used at runtime to deserialize tRPC network payloads into complex Java objects.
- TrpcErrorCode - Enum Class in io.jooby.trpc
-
Maps standard Jooby HTTP status codes to official tRPC error codes.
- TrpcErrorHandler - Class in io.jooby.trpc
-
A specialized error handler that formats exceptions into tRPC-compliant JSON responses.
- TrpcErrorHandler() - Constructor for class io.jooby.trpc.TrpcErrorHandler
- TrpcException - Exception Class in io.jooby.trpc
-
A specialized runtime exception that encapsulates a tRPC error.
- TrpcException(String, StatusCode) - Constructor for exception class io.jooby.trpc.TrpcException
-
Constructs a new tRPC exception using a standard Jooby HTTP status code without an underlying cause.
- TrpcException(String, StatusCode, Throwable) - Constructor for exception class io.jooby.trpc.TrpcException
-
Constructs a new tRPC exception using a standard Jooby HTTP status code.
- TrpcException(String, TrpcErrorCode) - Constructor for exception class io.jooby.trpc.TrpcException
-
Constructs a new tRPC exception without an underlying cause.
- TrpcException(String, TrpcErrorCode, Throwable) - Constructor for exception class io.jooby.trpc.TrpcException
-
Constructs a new tRPC exception using a specific tRPC error code.
- TrpcModule - Class in io.jooby.trpc
-
Jooby extension that enables tRPC support for the application.
- TrpcModule(TrpcService, TrpcService...) - Constructor for class io.jooby.trpc.TrpcModule
-
Constructs a new
TrpcModulewith the default base path:trpcand the provided services. - TrpcModule(String, TrpcService, TrpcService...) - Constructor for class io.jooby.trpc.TrpcModule
-
Creates a new instance of
TrpcModulewith the specified base path and tRPC services. - TrpcParser - Interface in io.jooby.trpc
-
The core JSON parsing SPI (Service Provider Interface) for tRPC.
- TrpcReader - Interface in io.jooby.trpc
-
A stateful, sequential reader used at runtime to extract arguments from a tRPC network payload.
- TrpcResponse<T> - Record Class in io.jooby.trpc
-
A standardized envelope for successful tRPC responses.
- TrpcResponse(T) - Constructor for record class io.jooby.trpc.TrpcResponse
-
Creates an instance of a
TrpcResponserecord class. - TrpcService - Interface in io.jooby.trpc
-
Generated tRPC service.
U
- UNAUTHORIZED - Enum constant in enum class io.jooby.trpc.TrpcErrorCode
-
Missing or invalid authentication.
- UNPROCESSABLE_CONTENT - Enum constant in enum class io.jooby.trpc.TrpcErrorCode
-
The payload format is valid, but the content is semantically incorrect.
V
- value() - Element in annotation interface io.jooby.annotation.trpc.Trpc.Mutation
-
Custom name for the tRPC mutation.
- value() - Element in annotation interface io.jooby.annotation.trpc.Trpc.Query
-
Custom name for the tRPC query.
- value() - Element in annotation interface io.jooby.annotation.trpc.Trpc
-
Custom name for the tRPC procedure or namespace.
- valueOf(String) - Static method in enum class io.jooby.trpc.TrpcErrorCode
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class io.jooby.trpc.TrpcErrorCode
-
Returns an array containing the constants of this enum class, in the order they are declared.
All Classes and Interfaces|All Packages|Serialized Form