Interface ResponseHeaderFields

    • Method Detail

      • getLocation

        default String getLocation​()
        Gets the Location Response-Header-Field HeaderField.LOCATION: "... The Location response-header field is used to redirect the recipient to a location other than the Request-URI for completion of the request or identification of a new resource. For 201 (Created) responses, the Location is that of the new resource which was created by the request. For 3xx responses, the location SHOULD indicate the server's preferred URI for automatic redirection to the resource. The field value consists of a single absolute URI. ..."
        Returns:
        The expected (supported) kinds of MediaType and the according parameters (being actually instances of the String type).
        See Also:
        "https://tools.ietf.org/html/rfc2616#page-135"
      • putLocation

        default String putLocation​(String aLocation)
        Sets the Location Response-Header-Field HeaderField.LOCATION: "... The Location response-header field is used to redirect the recipient to a location other than the Request-URI for completion of the request or identification of a new resource. For 201 (Created) responses, the Location is that of the new resource which was created by the request. For 3xx responses, the location SHOULD indicate the server's preferred URI for automatic redirection to the resource. The field value consists of a single absolute URI. types ..."
        Parameters:
        aLocation - The according location.
        Returns:
        The replaced element (if any, else null).
        See Also:
        "https://tools.ietf.org/html/rfc2616#page-135"
      • withLocation

        default ResponseHeaderFields withLocation​(String aLocation)
        Sets the Location Response-Header-Field HeaderField.LOCATION: "... The Location response-header field is used to redirect the recipient to a location other than the Request-URI for completion of the request or identification of a new resource. For 201 (Created) responses, the Location is that of the new resource which was created by the request. For 3xx responses, the location SHOULD indicate the server's preferred URI for automatic redirection to the resource. The field value consists of a single absolute URI. types ..."
        Parameters:
        aLocation - The according location.
        Returns:
        This object as of the Builder-Pattern.
        See Also:
        "https://tools.ietf.org/html/rfc2616#page-135"
      • removeLocation

        default String removeLocation​()
        Removes the Location Response-Header-Field HeaderField.LOCATION: "... The Location response-header field is used to redirect the recipient to a location other than the Request-URI for completion of the request or identification of a new resource. For 201 (Created) responses, the Location is that of the new resource which was created by the request. For 3xx responses, the location SHOULD indicate the server's preferred URI for automatic redirection to the resource. The field value consists of a single absolute URI. types ..."
        Returns:
        The value being removed (or null if none was set).
        See Also:
        "https://tools.ietf.org/html/rfc2616#page-135"