Interface LoadUrlParams


public interface LoadUrlParams
The parameters of the load URL request.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    A builder of LoadUrlParams.
  • Method Summary

    Modifier and Type
    Method
    Description
    default List<HttpHeader>
    Returns an immutable list of the extra HTTP headers that will be sent to the resource or an empty list if there were no extra HTTP headers.
    Creates a new LoadUrlParams builder.
    Returns the upload data that will be sent to the resource or an empty Optional if there is no upload data.
    default String
    url()
    Returns a string that represents the URL of the resource to load.
  • Method Details

    • newBuilder

      static LoadUrlParams.Builder newBuilder(String url)
      Creates a new LoadUrlParams builder.
      Parameters:
      url - the URL of the resource to load
      Returns:
      a new LoadUrlParams.Builder instance
      Throws:
      IllegalArgumentException - when url is empty or blank
    • url

      default String url()
      Returns a string that represents the URL of the resource to load.
    • uploadData

      default Optional<UploadData> uploadData()
      Returns the upload data that will be sent to the resource or an empty Optional if there is no upload data.
      Since:
      7.29
    • extraHeaders

      default List<HttpHeader> extraHeaders()
      Returns an immutable list of the extra HTTP headers that will be sent to the resource or an empty list if there were no extra HTTP headers.