com.atlassian.confluence.api.impl.service.nav
Class AbstractNav

java.lang.Object
  extended by 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


Field Summary
protected  java.lang.String baseUrl
           
protected  java.lang.String contextPath
           
 
Fields inherited from interface com.atlassian.confluence.api.nav.Navigation.Builder
NONE
 
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
 

Field Detail

baseUrl

protected final java.lang.String baseUrl

contextPath

protected final java.lang.String contextPath
Constructor Detail

AbstractNav

public AbstractNav(java.lang.String baseUrl,
                   java.lang.String context)
Method Detail

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.