public class ApplicationUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
TEST_WEB_SERVICES_CONTEXT_ROOT
The context root of JAXRS web services.
|
Modifier and Type | Method and Description |
---|---|
static RuntimeException |
createExampleRuntimeException()
Create an example RuntimeException used by a web service.
|
static String |
getQueryString(Map<String,Object> queryParameters)
Convert a map into a query string.
|
static String |
getWebServiceURL(URL baseUri,
String service,
String relativePath)
Create web service URL.
|
static String |
urlEncode(String text)
URL-encode
text . |
public static final String TEST_WEB_SERVICES_CONTEXT_ROOT
public static String getWebServiceURL(URL baseUri, String service, String relativePath)
baseUri
- Base URI.service
- Web service pathrelativePath
- Web service endpointpublic static String getQueryString(Map<String,Object> queryParameters)
queryParameters
- Map to convert.public static String urlEncode(String text)
text
.text
- Text to encode.public static RuntimeException createExampleRuntimeException()
Copyright © 2017 – 2021 Eclipse Foundation. All rights reserved.
Use is subject to license terms.