- All Superinterfaces:
- Prototype.Api
- All Known Implementing Classes:
- ClientUri,- UriInfo.BuilderBase.UriInfoImpl
Information about URI, that can be used to invoke a specific request over the network.
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forUriInfo.static classUriInfo.BuilderBase<BUILDER extends UriInfo.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends UriInfo> Fluent API builder base forUriInfo.
- 
Method SummaryModifier and TypeMethodDescriptiondefault StringAuthority (host:port) of this URI.static UriInfo.Builderbuilder()Create a new fluent API builder to customize configuration.static UriInfo.BuilderCreate a new fluent API builder from an existing instance.static UriInfocreate()Create a new instance with default values.fragment()Uri Fragment of the request.host()Host part of authority of the request.path()Path of the request.intport()Port part of authority of the request.query()URI Query of the request.scheme()Scheme of the request (http,https).default URItoUri()Create a URI from information in this URI info.
- 
Method Details- 
builderCreate a new fluent API builder to customize configuration.- Returns:
- a new builder
 
- 
builderCreate a new fluent API builder from an existing instance.- Parameters:
- instance- an existing instance used as a base for the builder
- Returns:
- a builder based on an instance
 
- 
createCreate a new instance with default values.- Returns:
- a new instance
 
- 
schemeString scheme()Scheme of the request (http,https).- Returns:
- the scheme, defaults to http
 
- 
hostString host()Host part of authority of the request.- Returns:
- host, defaults to localhost
 
- 
portint port()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 definedscheme()- forhttpthe port would be80, and forhttpsthe port would be443. If the scheme is different, if it ends withs, port would be443, otherwise80.- Returns:
- port
 
- 
pathUriPath path()Path of the request.- Returns:
- path
 
- 
queryUriQuery query()URI Query of the request.- Returns:
- query, may be empty
 
- 
fragmentUriFragment fragment()Uri Fragment of the request.- Returns:
- fragment, may be empty
 
- 
authorityAuthority (host:port) of this URI.- Returns:
- authority
 
- 
toUriCreate 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
 
 
-