Spring Social

org.springframework.social.support
Class URIBuilder

java.lang.Object
  extended by org.springframework.social.support.URIBuilder

public class URIBuilder
extends java.lang.Object

Builds up a URI from individual URI components. Ensures that query parameters are application/x-www-form-urlencoded.

Author:
Craig Walls

Method Summary
 java.net.URI build()
          Builds the URI
static URIBuilder fromUri(java.lang.String baseUri)
          Creates a URIBuilder with a base URI string as the starting point
 URIBuilder queryParam(java.lang.String name, java.lang.String value)
          Adds a query parameter to the URI
 URIBuilder queryParams(org.springframework.util.MultiValueMap<java.lang.String,java.lang.String> params)
          Adds a query parameters to the URI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

fromUri

public static URIBuilder fromUri(java.lang.String baseUri)
Creates a URIBuilder with a base URI string as the starting point


queryParam

public URIBuilder queryParam(java.lang.String name,
                             java.lang.String value)
Adds a query parameter to the URI


queryParams

public URIBuilder queryParams(org.springframework.util.MultiValueMap<java.lang.String,java.lang.String> params)
Adds a query parameters to the URI


build

public java.net.URI build()
Builds the URI


Spring Social