public final class RESTUtil extends Object
RESTUtil acts as utility class used by REST API system| Modifier and Type | Method and Description |
|---|---|
static String |
formatURIPath(String pattern,
Map<String,String> pathParameters)
Formats the URI path for REST calls.
|
static String |
formatURIPath(String pattern,
Map<String,String> pathParameters,
Map<String,String> queryParameters)
Formats the URI path for REST calls.
|
static String |
formatURIPath(String pattern,
Object[] parameters)
Formats the URI path for REST calls.
|
public static String formatURIPath(String pattern, Object[] parameters)
pattern - URI pattern with place holders for replacement stringsparameters - Replacement objectspublic static String formatURIPath(String pattern, Map<String,String> pathParameters) throws PayPalRESTException
Mappattern - URI pattern with named place holderspathParameters - Parameter MapPayPalRESTExceptionpublic static String formatURIPath(String pattern, Map<String,String> pathParameters, Map<String,String> queryParameters) throws PayPalRESTException
Map. Query parameters are appended to the end of the URI pathpattern - URI pattern with named place holderspathParameters - Parameter MapqueryParameters - Query parameters MapPayPalRESTExceptionCopyright © 2016. All Rights Reserved.