Class AbstractNav
java.lang.Object
com.atlassian.confluence.plugins.rest.navigation.v2.impl.AbstractNav
- All Implemented Interfaces:
Navigation.Builder,RestNavigation.RestBuilder
- Direct Known Subclasses:
BaseNav,RelevantViewRestrictionsNavImpl,SpacePermissionNavImpl
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidbuild an absolute URL http://localhost:8080/confluence/rest/of/urlbuild an absolute URL substituting the confuence configured base url and context for the base url and context supplied by the url builderprotected abstract Stringbuild a relative URL without webapp context, i.e.build a relative URL with webapp context, i.e.protected abstract AbstractNavcopy()protected abstract Stringprotected abstract Stringprotected abstract Stringprotected abstract voidjavax.ws.rs.core.UriBuilderconverts this builder to a jersey URI builderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.confluence.rest.v2.api.services.RestNavigation.RestBuilder
createPageRequest, createPageRequest, createPageRequest
-
Constructor Details
-
AbstractNav
public AbstractNav()
-
-
Method Details
-
buildPath
-
addParam
-
setAnchor
-
getAnchor
-
getParams
-
getBaseUrl
-
getContextPath
-
copy
-
buildAbsolute
Description copied from interface:Navigation.Builderbuild an absolute URL http://localhost:8080/confluence/rest/of/url- Specified by:
buildAbsolutein interfaceNavigation.Builder
-
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
Description copied from interface:Navigation.Builderbuild a relative URL without webapp context, i.e. /rest/of/url- Specified by:
buildRelativein interfaceNavigation.Builder
-
buildRelativeWithContext
Description copied from interface:Navigation.Builderbuild a relative URL with webapp context, i.e. /confluence/rest/of/url- Specified by:
buildRelativeWithContextin interfaceNavigation.Builder
-