public class RestUrl extends Object
Constructor and Description |
---|
RestUrl(String protocol,
String host,
String port,
String contextPath) |
Modifier and Type | Method and Description |
---|---|
String |
buildUrl() |
String |
getId() |
boolean |
isRetrieveResource() |
static RestUrl |
newInstance(String urlTemplate)
Creates a
RestUrl object from an endpoint url such as
http://localhost:8181/services/catalog/query?q={searchTerms}&src={fs:routeTo?}&count={count?}
. |
void |
setId(String literal) |
void |
setRetrieveResource(boolean retrieveResource) |
String |
toString() |
public static RestUrl newInstance(String urlTemplate) throws URISyntaxException, MalformedURLException
RestUrl
object from an endpoint url such as
http://localhost:8181/services/catalog/query?q={searchTerms}&src={fs:routeTo?}&count={count?}
.urlTemplate
- - endpoint url tempateURISyntaxException
MalformedURLException
public String getId()
public void setId(String literal)
public boolean isRetrieveResource()
public void setRetrieveResource(boolean retrieveResource)
public String buildUrl()
This work is licensed under a Creative Commons Attribution 4.0 International License.