public class KeycloakUriBuilder extends Object
Constructor and Description |
---|
KeycloakUriBuilder() |
public static KeycloakUriBuilder fromUri(URI uri)
public static KeycloakUriBuilder fromUri(String uriTemplate)
public static KeycloakUriBuilder fromPath(String path) throws IllegalArgumentException
IllegalArgumentException
public KeycloakUriBuilder clone()
public static KeycloakUriBuilder fromTemplate(String uriTemplate)
uriTemplate
- public KeycloakUriBuilder uriTemplate(String uriTemplate)
uriTemplate
- protected KeycloakUriBuilder parseHierarchicalUri(String uriTemplate, Matcher match)
public KeycloakUriBuilder uri(String uriTemplate) throws IllegalArgumentException
IllegalArgumentException
public KeycloakUriBuilder uri(URI uri) throws IllegalArgumentException
IllegalArgumentException
public KeycloakUriBuilder scheme(String scheme) throws IllegalArgumentException
IllegalArgumentException
public KeycloakUriBuilder schemeSpecificPart(String ssp) throws IllegalArgumentException
IllegalArgumentException
public KeycloakUriBuilder userInfo(String ui)
public KeycloakUriBuilder host(String host) throws IllegalArgumentException
IllegalArgumentException
public KeycloakUriBuilder port(int port) throws IllegalArgumentException
IllegalArgumentException
public KeycloakUriBuilder path(String segment) throws IllegalArgumentException
IllegalArgumentException
public KeycloakUriBuilder replaceMatrix(String matrix) throws IllegalArgumentException
IllegalArgumentException
public KeycloakUriBuilder replaceQuery(String query) throws IllegalArgumentException
IllegalArgumentException
public KeycloakUriBuilder fragment(String fragment) throws IllegalArgumentException
IllegalArgumentException
public KeycloakUriBuilder encodedFragment(String fragment)
fragment
- public KeycloakUriBuilder substitutePathParam(String name, Object value, boolean isEncoded)
name
- value
- isEncoded
- public URI buildFromMap(Map<String,?> values) throws IllegalArgumentException
IllegalArgumentException
public URI buildFromEncodedMap(Map<String,?> values) throws IllegalArgumentException
IllegalArgumentException
public URI buildFromMap(Map<String,?> values, boolean encodeSlashInPath) throws IllegalArgumentException
IllegalArgumentException
protected URI buildUriFromMap(Map<String,?> paramMap, boolean fromEncodedMap, boolean encodeSlash) throws IllegalArgumentException
IllegalArgumentException
protected StringBuffer replacePathParameter(String name, String value, boolean isEncoded, String string, StringBuffer buffer, boolean encodeSlash)
protected StringBuffer replaceParameter(Map<String,?> paramMap, boolean fromEncodedMap, boolean isTemplate, String string, StringBuffer buffer, boolean encodeSlash)
protected StringBuffer replaceQueryStringParameter(Map<String,?> paramMap, boolean fromEncodedMap, boolean isTemplate, String string, StringBuffer buffer)
public List<String> getPathParamNamesInDeclarationOrder()
public URI build(Object... values) throws IllegalArgumentException
IllegalArgumentException
protected URI buildFromValues(boolean encodeSlash, boolean encoded, Object... values)
public KeycloakUriBuilder matrixParam(String name, Object... values) throws IllegalArgumentException
IllegalArgumentException
public KeycloakUriBuilder queryParam(String name, Object... values) throws IllegalArgumentException
IllegalArgumentException
public KeycloakUriBuilder replaceQueryParam(String name, Object... values) throws IllegalArgumentException
IllegalArgumentException
public String getHost()
public String getScheme()
public int getPort()
public String getUserInfo()
public String getPath()
public String getQuery()
public String getFragment()
public KeycloakUriBuilder segment(String... segments) throws IllegalArgumentException
IllegalArgumentException
public KeycloakUriBuilder replacePath(String path)
public URI build(Object[] values, boolean encodeSlashInPath) throws IllegalArgumentException
IllegalArgumentException
public String toTemplate()
public KeycloakUriBuilder resolveTemplate(String name, Object value) throws IllegalArgumentException
IllegalArgumentException
public KeycloakUriBuilder resolveTemplates(Map<String,Object> templateValues) throws IllegalArgumentException
IllegalArgumentException
public KeycloakUriBuilder resolveTemplate(String name, Object value, boolean encodeSlashInPath) throws IllegalArgumentException
IllegalArgumentException
public KeycloakUriBuilder resolveTemplates(Map<String,Object> templateValues, boolean encodeSlashInPath) throws IllegalArgumentException
IllegalArgumentException
public KeycloakUriBuilder resolveTemplatesFromEncoded(Map<String,Object> templateValues) throws IllegalArgumentException
IllegalArgumentException
Copyright © 2019 JBoss by Red Hat. All rights reserved.