public class LinkBuilderImpl extends Object implements javax.ws.rs.core.Link.Builder
Modifier and Type | Field and Description |
---|---|
protected URI |
baseUri |
protected Map<String,String> |
map
A map for all the link parameters such as "rel", "type", etc.
|
protected javax.ws.rs.core.UriBuilder |
uriBuilder |
Constructor and Description |
---|
LinkBuilderImpl() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Link.Builder |
baseUri(String uri) |
javax.ws.rs.core.Link.Builder |
baseUri(URI uri) |
javax.ws.rs.core.Link |
build(Object... values) |
javax.ws.rs.core.Link |
buildRelativized(URI uri,
Object... values) |
javax.ws.rs.core.Link.Builder |
link(javax.ws.rs.core.Link link) |
javax.ws.rs.core.Link.Builder |
link(String link) |
javax.ws.rs.core.Link.Builder |
param(String name,
String value) |
javax.ws.rs.core.Link.Builder |
rel(String rel) |
javax.ws.rs.core.Link.Builder |
title(String title) |
javax.ws.rs.core.Link.Builder |
type(String type) |
javax.ws.rs.core.Link.Builder |
uri(String uri) |
javax.ws.rs.core.Link.Builder |
uri(URI uri) |
javax.ws.rs.core.Link.Builder |
uriBuilder(javax.ws.rs.core.UriBuilder uriBuilder) |
protected final Map<String,String> map
protected javax.ws.rs.core.UriBuilder uriBuilder
protected URI baseUri
public javax.ws.rs.core.Link.Builder link(javax.ws.rs.core.Link link)
link
in interface javax.ws.rs.core.Link.Builder
public javax.ws.rs.core.Link.Builder link(String link)
link
in interface javax.ws.rs.core.Link.Builder
public javax.ws.rs.core.Link.Builder uriBuilder(javax.ws.rs.core.UriBuilder uriBuilder)
uriBuilder
in interface javax.ws.rs.core.Link.Builder
public javax.ws.rs.core.Link.Builder uri(URI uri)
uri
in interface javax.ws.rs.core.Link.Builder
public javax.ws.rs.core.Link.Builder uri(String uri) throws IllegalArgumentException
uri
in interface javax.ws.rs.core.Link.Builder
IllegalArgumentException
public javax.ws.rs.core.Link.Builder rel(String rel)
rel
in interface javax.ws.rs.core.Link.Builder
public javax.ws.rs.core.Link.Builder title(String title)
title
in interface javax.ws.rs.core.Link.Builder
public javax.ws.rs.core.Link.Builder type(String type)
type
in interface javax.ws.rs.core.Link.Builder
public javax.ws.rs.core.Link.Builder param(String name, String value) throws IllegalArgumentException
param
in interface javax.ws.rs.core.Link.Builder
IllegalArgumentException
public javax.ws.rs.core.Link build(Object... values) throws javax.ws.rs.core.UriBuilderException
build
in interface javax.ws.rs.core.Link.Builder
javax.ws.rs.core.UriBuilderException
public javax.ws.rs.core.Link buildRelativized(URI uri, Object... values)
buildRelativized
in interface javax.ws.rs.core.Link.Builder
public javax.ws.rs.core.Link.Builder baseUri(URI uri)
baseUri
in interface javax.ws.rs.core.Link.Builder
public javax.ws.rs.core.Link.Builder baseUri(String uri)
baseUri
in interface javax.ws.rs.core.Link.Builder
Copyright © 2020 JBoss by Red Hat. All rights reserved.