Class AbstractNav
- java.lang.Object
 - 
- com.atlassian.confluence.plugins.rest.navigation.impl.AbstractNav
 
 
- 
- All Implemented Interfaces:
 Navigation.Builder,RestNavigation.RestBuilder
- Direct Known Subclasses:
 BaseNav
public abstract class AbstractNav extends Object implements RestNavigation.RestBuilder
A stateless base class for the nav builders that is safe for the delegating nav builder to extend directly. Other nav builders should probably extend BaseNav instead 
- 
- 
Field Summary
- 
Fields inherited from interface com.atlassian.confluence.api.nav.Navigation.Builder
NONE 
 - 
 
- 
Constructor Summary
Constructors Constructor Description AbstractNav() 
- 
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidaddParam(String key, Object value)StringbuildAbsolute()build an absolute URL http://localhost:8080/confluence/rest/of/urlStringbuildCanonicalAbsolute()build an absolute URL substituting the confuence configured base url and context for the base url and context supplied by the url builderprotected abstract StringbuildPath()StringbuildRelative()build a relative URL without webapp context, i.e.StringbuildRelativeWithContext()build a relative URL with webapp context, i.e.protected abstract AbstractNavcopy()protected abstract StringgetAnchor()protected abstract StringgetBaseUrl()protected abstract StringgetContextPath()protected abstract Map<String,Object>getParams()protected abstract voidsetAnchor(String anchor)javax.ws.rs.core.UriBuildertoAbsoluteUriBuilder()converts this builder to a jersey URI builder 
 - 
 
- 
- 
Method Detail
- 
buildPath
protected abstract String buildPath()
 
- 
setAnchor
protected abstract void setAnchor(String anchor)
 
- 
getAnchor
protected abstract String getAnchor()
 
- 
getBaseUrl
protected abstract String getBaseUrl()
 
- 
getContextPath
protected abstract String getContextPath()
 
- 
copy
protected abstract AbstractNav copy()
 
- 
buildAbsolute
public String buildAbsolute()
Description copied from interface:Navigation.Builderbuild an absolute URL http://localhost:8080/confluence/rest/of/url- Specified by:
 buildAbsolutein interfaceNavigation.Builder
 
- 
buildCanonicalAbsolute
public String buildCanonicalAbsolute()
Description copied from interface:Navigation.Builderbuild an absolute URL substituting the confuence configured base url and context for the base url and context supplied by the url builder- Specified by:
 buildCanonicalAbsolutein interfaceNavigation.Builder- Returns:
 - a canonical url for this navigation path
 
 
- 
toAbsoluteUriBuilder
public javax.ws.rs.core.UriBuilder toAbsoluteUriBuilder()
Description copied from interface:RestNavigation.RestBuilderconverts this builder to a jersey URI builder- Specified by:
 toAbsoluteUriBuilderin interfaceRestNavigation.RestBuilder- Returns:
 - a jersey URI builder
 
 
- 
buildRelative
public String buildRelative()
Description copied from interface:Navigation.Builderbuild a relative URL without webapp context, i.e. /rest/of/url- Specified by:
 buildRelativein interfaceNavigation.Builder
 
- 
buildRelativeWithContext
public String buildRelativeWithContext()
Description copied from interface:Navigation.Builderbuild a relative URL with webapp context, i.e. /confluence/rest/of/url- Specified by:
 buildRelativeWithContextin interfaceNavigation.Builder
 
 - 
 
 -