- java.lang.Object
-
- io.helidon.common.http.UriInfo
-
public class UriInfo extends Object
Information about URI.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
authority()
Authority (host:port) of this URI.boolean
equals(Object o)
int
hashCode()
String
host()
String
path()
int
port()
Optional<String>
query()
String
scheme()
String
toString()
URI
toUri()
Create URI from the information.
-
-
-
Constructor Detail
-
UriInfo
public UriInfo(String scheme, String host, int port, String path, Optional<String> query)
Creates a new instance ofUriInfo
.- Parameters:
scheme
- Scheme of the request (http
,https
)host
- Host part of authority of the requestport
- Port part of authority of the requestpath
- Path of the requestquery
- Query of the request
-
-
Method Detail
-
toUri
public URI toUri()
Create URI from the information. This operation is expensive.- Returns:
- URI to use
-
scheme
public String scheme()
- Returns:
- scheme from the URI
-
host
public String host()
- Returns:
- host from the URI
-
port
public int port()
- Returns:
- port from the URI
-
path
public String path()
- Returns:
- path from the URI
-
authority
public String authority()
Authority (host:port) of this URI.- Returns:
- authority
-
-