public abstract class AbstractNav extends Object implements RestNavigation.RestBuilder
Modifier and Type | Field and Description |
---|---|
protected String |
baseUrl |
protected String |
contextPath |
NONE
Constructor and Description |
---|
AbstractNav(String baseUrl,
String context) |
Modifier and Type | Method and Description |
---|---|
protected void |
addParam(String key,
Object value) |
String |
buildAbsolute()
build an absolute URL http://localhost:8080/confluence/rest/of/url
|
protected abstract String |
buildPath() |
String |
buildRelative()
build a relative URL without webapp context, i.e.
|
String |
buildRelativeWithContext()
build a relative URL with webapp context, i.e.
|
protected void |
setAnchor(String anchor) |
javax.ws.rs.core.UriBuilder |
toAbsoluteUriBuilder()
converts this builder to a jersey URI builder
|
protected abstract String buildPath()
protected void setAnchor(String anchor)
public String buildAbsolute()
Navigation.Builder
buildAbsolute
in interface Navigation.Builder
public javax.ws.rs.core.UriBuilder toAbsoluteUriBuilder()
RestNavigation.RestBuilder
toAbsoluteUriBuilder
in interface RestNavigation.RestBuilder
public String buildRelative()
Navigation.Builder
buildRelative
in interface Navigation.Builder
public String buildRelativeWithContext()
Navigation.Builder
buildRelativeWithContext
in interface Navigation.Builder
Copyright © 2003–2016 Atlassian. All rights reserved.