Class HttpURI.Unsafe

java.lang.Object
org.eclipse.jetty.http.HttpURI.Immutable
org.eclipse.jetty.http.HttpURI.Unsafe
All Implemented Interfaces:
Serializable, HttpURI
Enclosing interface:
HttpURI

public static class HttpURI.Unsafe extends HttpURI.Immutable

An unsafe HttpURI that accepts URI parts without checking whether they are valid.

This class should be primarily used for testing, since possibly invalid URI may break arbitrary code.

See Also:
  • Constructor Details

    • Unsafe

      public Unsafe(String scheme, String host, int port, String path, String query, String fragment)

      Creates a new unsafe HttpURI with the given arguments.

      Parameters:
      scheme - the URI scheme
      host - the URI host
      port - the URI port, or -1 for no port
      path - the URI path
      query - the URI query
      fragment - the URI fragment