Package org.yamcs.http
Class HttpTranscoder
- java.lang.Object
-
- org.yamcs.http.HttpTranscoder
-
public class HttpTranscoder extends Object
Converts HTTP requests to Protobuf messages used in API definitions.This is largely inspired from how Google Cloud transcodes HTTP to gRPC. The advantage of transcoding is that the API implementation can be largely agnostic of HTTP and that it can profit from Protobuf generated code without needing to distinguish between route params, query params, request bodies and so on.
-
-
Constructor Summary
Constructors Constructor Description HttpTranscoder()
-
-
-
Method Detail
-
transcode
public static com.google.protobuf.Message transcode(RouteContext ctx) throws HttpTranscodeException
- Throws:
HttpTranscodeException
-
-