org.glassfish.jersey.uri.internal
Class UriBuilderImpl

java.lang.Object
  extended by javax.ws.rs.core.UriBuilder
      extended by org.glassfish.jersey.uri.internal.UriBuilderImpl

public class UriBuilderImpl
extends UriBuilder

An implementation of UriBuilder.

Author:
Paul Sandoz, Martin Matula (martin.matula at oracle.com), Miroslav Fuksa (miroslav.fuksa at oracle.com)

Constructor Summary
UriBuilderImpl()
          Create new implementation of UriBuilder.
 
Method Summary
 URI build(Object... values)
           
 URI build(Object[] values, boolean encodeSlashInPath)
           
 URI buildFromEncoded(Object... values)
           
 URI buildFromEncodedMap(Map<String,?> values)
           
 URI buildFromMap(Map<String,?> values)
           
 URI buildFromMap(Map<String,?> values, boolean encodeSlashInPath)
           
 UriBuilderImpl clone()
           
 UriBuilderImpl fragment(String fragment)
           
 UriBuilderImpl host(String host)
           
 UriBuilderImpl matrixParam(String name, Object... values)
           
 UriBuilderImpl path(Class<?> resource)
           
 UriBuilderImpl path(Class resource, String methodName)
           
 UriBuilderImpl path(Method method)
           
 UriBuilderImpl path(String path)
           
 UriBuilderImpl port(int port)
           
 UriBuilderImpl queryParam(String name, Object... values)
           
 UriBuilderImpl replaceMatrix(String matrix)
           
 UriBuilderImpl replaceMatrixParam(String name, Object... values)
           
 UriBuilderImpl replacePath(String path)
           
 UriBuilderImpl replaceQuery(String query)
           
 UriBuilderImpl replaceQueryParam(String name, Object... values)
           
 UriBuilderImpl scheme(String scheme)
           
 UriBuilderImpl schemeSpecificPart(String ssp)
           
 UriBuilderImpl segment(String... segments)
           
 String toTemplate()
           
 UriBuilderImpl uri(String uriTemplate)
           
 UriBuilderImpl uri(URI uri)
           
 UriBuilderImpl userInfo(String ui)
           
 
Methods inherited from class javax.ws.rs.core.UriBuilder
fromLink, fromMethod, fromPath, fromResource, fromUri, fromUri, newInstance
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UriBuilderImpl

public UriBuilderImpl()
Create new implementation of UriBuilder.

Method Detail

clone

public UriBuilderImpl clone()
Overrides:
clone in class UriBuilder

uri

public UriBuilderImpl uri(URI uri)
Specified by:
uri in class UriBuilder

uri

public UriBuilderImpl uri(String uriTemplate)
Specified by:
uri in class UriBuilder

scheme

public UriBuilderImpl scheme(String scheme)
Specified by:
scheme in class UriBuilder

schemeSpecificPart

public UriBuilderImpl schemeSpecificPart(String ssp)
Specified by:
schemeSpecificPart in class UriBuilder

userInfo

public UriBuilderImpl userInfo(String ui)
Specified by:
userInfo in class UriBuilder

host

public UriBuilderImpl host(String host)
Specified by:
host in class UriBuilder

port

public UriBuilderImpl port(int port)
Specified by:
port in class UriBuilder

replacePath

public UriBuilderImpl replacePath(String path)
Specified by:
replacePath in class UriBuilder

path

public UriBuilderImpl path(String path)
Specified by:
path in class UriBuilder

path

public UriBuilderImpl path(Class<?> resource)
Specified by:
path in class UriBuilder

path

public UriBuilderImpl path(Class resource,
                           String methodName)
Specified by:
path in class UriBuilder

path

public UriBuilderImpl path(Method method)
Specified by:
path in class UriBuilder

segment

public UriBuilderImpl segment(String... segments)
                       throws IllegalArgumentException
Specified by:
segment in class UriBuilder
Throws:
IllegalArgumentException

replaceMatrix

public UriBuilderImpl replaceMatrix(String matrix)
Specified by:
replaceMatrix in class UriBuilder

matrixParam

public UriBuilderImpl matrixParam(String name,
                                  Object... values)
Specified by:
matrixParam in class UriBuilder

replaceMatrixParam

public UriBuilderImpl replaceMatrixParam(String name,
                                         Object... values)
Specified by:
replaceMatrixParam in class UriBuilder

replaceQuery

public UriBuilderImpl replaceQuery(String query)
Specified by:
replaceQuery in class UriBuilder

queryParam

public UriBuilderImpl queryParam(String name,
                                 Object... values)
Specified by:
queryParam in class UriBuilder

replaceQueryParam

public UriBuilderImpl replaceQueryParam(String name,
                                        Object... values)
Specified by:
replaceQueryParam in class UriBuilder

fragment

public UriBuilderImpl fragment(String fragment)
Specified by:
fragment in class UriBuilder

buildFromMap

public URI buildFromMap(Map<String,?> values)
Specified by:
buildFromMap in class UriBuilder

buildFromMap

public URI buildFromMap(Map<String,?> values,
                        boolean encodeSlashInPath)

buildFromEncodedMap

public URI buildFromEncodedMap(Map<String,?> values)
                        throws IllegalArgumentException,
                               UriBuilderException
Specified by:
buildFromEncodedMap in class UriBuilder
Throws:
IllegalArgumentException
UriBuilderException

build

public URI build(Object... values)
Specified by:
build in class UriBuilder

build

public URI build(Object[] values,
                 boolean encodeSlashInPath)

buildFromEncoded

public URI buildFromEncoded(Object... values)
Specified by:
buildFromEncoded in class UriBuilder

toTemplate

public String toTemplate()


Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.