public static interface


com.atlassian.bitbucket.nav.NavBuilder.Builder<B extends com.atlassian.bitbucket.nav.NavBuilder.Builder>
Known Indirect Subclasses

Class Overview

Base interface for all terminal builders (builders which can produce a url)

Public Methods

public String buildAbsolute ()

  • the full url including scheme, host, port etc and webapp context e.g. http://localhost:7990/bitbucket/rest/of/url all components up to and including the webapp context will be taken from the context HTTP request (if one is present) or otherwise taken the configured base URL of the server.

public String buildConfigured ()

  • the same as buildAbsolute(), but will ignore any context HTTP request, and always use the server's configured base URL

public String buildRelNoContext ()

  • the url path without scheme, host, port etc or webapp context e.g. /rest/of/url

public String buildRelative ()

  • the url path without scheme, host, port etc e.g. /webappcontext/rest/of/url

public Builder<B> withParam (String name, String value)

  • a builder with the supplied name and value parameters. Overwrites any previous parameter of the same name.