Annotation Interface Request


@Documented @Retention(SOURCE) @Target(METHOD) public @interface Request
Annotates an RPC endpoint. This annotation provides namespace for annotations for dialogue client generation.
  • Element Details

    • method

      com.palantir.dialogue.HttpMethod method
    • path

      String path
      Request path. Follows conjure format. Path parameter names must correspond to parameters on the annotated method.
      See Also:
    • accept

      Class<? extends DeserializerFactory> accept
      Response body Deserializer. By default this deserializer is only used for successful (i.e. 200 <= response.code() < 300) responses.
      Returns:
      class that implements a zero-arg constructor to be used to deserialize the response
      Default:
      com.palantir.dialogue.annotations.Json.class
    • errorDecoder

      Class<? extends ErrorDecoder> errorDecoder
      Error handling strategy.
      Returns:
      class that implements a zero-arg constructor to be used to deserialize an error response
      Default:
      com.palantir.dialogue.annotations.ConjureErrorDecoder.class