Class UriInfo.BuilderBase.UriInfoImpl

java.lang.Object
io.helidon.common.uri.UriInfo.BuilderBase.UriInfoImpl
All Implemented Interfaces:
Prototype.Api, UriInfo
Enclosing class:
UriInfo.BuilderBase<BUILDER extends UriInfo.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends UriInfo>

protected static class UriInfo.BuilderBase.UriInfoImpl extends Object implements UriInfo
Generated implementation of the prototype, can be extended by descendant prototype implementations.
  • Constructor Details

    • UriInfoImpl

      protected UriInfoImpl(UriInfo.BuilderBase<?,?> builder)
      Create an instance providing a builder.
      Parameters:
      builder - extending builder base of this prototype
  • Method Details

    • scheme

      public String scheme()
      Description copied from interface: UriInfo
      Scheme of the request (http, https).
      Specified by:
      scheme in interface UriInfo
      Returns:
      the scheme, defaults to http
    • host

      public String host()
      Description copied from interface: UriInfo
      Host part of authority of the request.
      Specified by:
      host in interface UriInfo
      Returns:
      host, defaults to localhost
    • port

      public int port()
      Description copied from interface: UriInfo
      Port part of authority of the request. If port is not defined (e.g. authority without a port is used, or none is configured), the default port is used based on the defined UriInfo.scheme() - for http the port would be 80, and for https the port would be 443. If the scheme is different, if it ends with s, port would be 443, otherwise 80.
      Specified by:
      port in interface UriInfo
      Returns:
      port
    • path

      public UriPath path()
      Description copied from interface: UriInfo
      Path of the request.
      Specified by:
      path in interface UriInfo
      Returns:
      path
    • query

      public UriQuery query()
      Description copied from interface: UriInfo
      URI Query of the request.
      Specified by:
      query in interface UriInfo
      Returns:
      query, may be empty
    • fragment

      public UriFragment fragment()
      Description copied from interface: UriInfo
      Uri Fragment of the request.
      Specified by:
      fragment in interface UriInfo
      Returns:
      fragment, may be empty
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • authority

      default String authority()
      Authority (host:port) of this URI.
      Returns:
      authority
    • toUri

      default URI toUri()
      Create a URI from information in this URI info. Creating a URI is a relatively expensive operation (as it always validates and does some additional operations).
      Returns:
      a new URI