com.atlassian.confluence.api.impl.service.nav
Class AbstractNav
java.lang.Object
com.atlassian.confluence.api.impl.service.nav.AbstractNav
- All Implemented Interfaces:
- Navigation.Builder, RestNavigation.RestBuilder
- Direct Known Subclasses:
- DelegatingPathBuilder
public abstract class AbstractNav
- extends java.lang.Object
- implements RestNavigation.RestBuilder
Constructor Summary |
AbstractNav(java.lang.String baseUrl,
java.lang.String context)
|
Method Summary |
protected void |
addParam(java.lang.String key,
java.lang.Object value)
|
java.lang.String |
buildAbsolute()
build an absolute URL http://localhost:8080/confluence/rest/of/url |
protected abstract java.lang.String |
buildPath()
|
java.lang.String |
buildRelative()
build a relative URL without webapp context, i.e. |
java.lang.String |
buildRelativeWithContext()
build a relative URL with webapp context, i.e. |
protected void |
setAnchor(java.lang.String anchor)
|
javax.ws.rs.core.UriBuilder |
toAbsoluteUriBuilder()
converts this builder to a jersey URI builder |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
baseUrl
protected final java.lang.String baseUrl
contextPath
protected final java.lang.String contextPath
AbstractNav
public AbstractNav(java.lang.String baseUrl,
java.lang.String context)
buildPath
protected abstract java.lang.String buildPath()
addParam
protected void addParam(java.lang.String key,
java.lang.Object value)
setAnchor
protected void setAnchor(java.lang.String anchor)
buildAbsolute
public java.lang.String buildAbsolute()
- Description copied from interface:
Navigation.Builder
- build an absolute URL http://localhost:8080/confluence/rest/of/url
- Specified by:
buildAbsolute
in interface Navigation.Builder
toAbsoluteUriBuilder
public javax.ws.rs.core.UriBuilder toAbsoluteUriBuilder()
- Description copied from interface:
RestNavigation.RestBuilder
- converts this builder to a jersey URI builder
- Specified by:
toAbsoluteUriBuilder
in interface RestNavigation.RestBuilder
- Returns:
- a jersey URI builder
buildRelative
public java.lang.String buildRelative()
- Description copied from interface:
Navigation.Builder
- build a relative URL without webapp context, i.e. /rest/of/url
- Specified by:
buildRelative
in interface Navigation.Builder
buildRelativeWithContext
public java.lang.String buildRelativeWithContext()
- Description copied from interface:
Navigation.Builder
- build a relative URL with webapp context, i.e. /confluence/rest/of/url
- Specified by:
buildRelativeWithContext
in interface Navigation.Builder
- Returns:
Copyright © 2003-2014 Atlassian. All Rights Reserved.