Interface HttpServerRequest

  • All Superinterfaces:
    HttpRequest, Request

    public interface HttpServerRequest
    extends HttpRequest
    This API is taken from OpenZipkin Brave. Abstract request type used for parsing and sampling. Represents an HTTP Server request.
    Since:
    3.0.0
    Author:
    OpenZipkin Brave Authors, Marcin Grzejszczak
    • Method Detail

      • spanKind

        default Span.Kind spanKind()
        Specified by:
        spanKind in interface Request
        Returns:
        The remote Span.Kind describing the direction and type of the request.
      • getAttribute

        default Object getAttribute​(String key)
        Parameters:
        key - attribute key
        Returns:
        attribute with the given key or null if not set
      • setAttribute

        default void setAttribute​(String key,
                                  Object value)
        Parameters:
        key - attribute key
        value - attribute value