Package org.restlet.ext.jaxrs
Class AbstractUriBuilder
- java.lang.Object
-
- javax.ws.rs.core.UriBuilder
-
- org.restlet.ext.jaxrs.AbstractUriBuilder
-
- Direct Known Subclasses:
ExtendedUriBuilder,UriBuilderImpl
@Deprecated public abstract class AbstractUriBuilder extends javax.ws.rs.core.UriBuilderDeprecated.Will be removed in next minor release.Abstract implementation of interfaceUriBuilder. Not intended for public use.- See Also:
UriBuilder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classAbstractUriBuilder.ArrayVariableResolverDeprecated.
-
Field Summary
Fields Modifier and Type Field Description private java.lang.CharSequencefragmentDeprecated.StringorStringBuilder.private java.lang.StringhostDeprecated.no converting or appending necessary.private java.lang.CharSequencepathDeprecated.StringorStringBuilder.private java.lang.StringportDeprecated.private java.lang.CharSequencequeryDeprecated.StringorStringBuilder.private java.lang.StringschemeDeprecated.no converting or appending necessary.private java.lang.CharSequenceuserInfoDeprecated.StringorStringBuilder.
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractUriBuilder()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description private voidaddValidPathSegment(java.lang.CharSequence newPathSegment)Deprecated.adds a valid (encoded or checked) path segment.private voidaddValidPathSegments(java.util.List<java.lang.CharSequence> newPathSegments)Deprecated.adds a valid (encoded or checked) path segment.java.net.URIbuild(java.lang.Object... values)Deprecated.Build a URI, using the supplied values in order to replace any URI template parameters.java.net.URIbuildFromEncoded(java.lang.Object... values)Deprecated.java.net.URIbuildFromEncodedMap(java.util.Map<java.lang.String,? extends java.lang.Object> values)Deprecated.java.net.URIbuildFromMap(java.util.Map<java.lang.String,? extends java.lang.Object> values)Deprecated.private java.net.URIbuildFromMap(java.util.Map<java.lang.String,? extends java.lang.Object> values, boolean encode)Deprecated.Build a URI, any URI template parameters will be replaced by the value in the supplied map.private java.net.URIbuildUri(java.lang.String refAsString)Deprecated.protected voidcopyInto(AbstractUriBuilder uriBuilder)Deprecated.javax.ws.rs.core.UriBuilderfragment(java.lang.String fragment)Deprecated.Set the URI fragment using an unencoded value.protected java.lang.StringgetExtension()Deprecated.private java.lang.StringBuildergetPath()Deprecated.javax.ws.rs.core.UriBuilderhost(java.lang.String host)Deprecated.Set the URI host.javax.ws.rs.core.UriBuildermatrixParam(java.lang.String name, java.lang.Object... values)Deprecated.Append a matrix parameter to the existing set of matrix parameters of the current final segment of the URI path.protected javax.ws.rs.core.UriBuilderpath(java.lang.CharSequence pathToAppend)Deprecated.Appends the given path to the current path.Sjavax.ws.rs.core.UriBuilderpath(java.lang.Class rootResource)Deprecated.Append path segments from a Path-annotated class to the existing list of segments.javax.ws.rs.core.UriBuilderpath(java.lang.Class rootResource, java.lang.String methodName)Deprecated.Append path segments from a Path-annotated method to the existing list of segments.javax.ws.rs.core.UriBuilderpath(java.lang.reflect.Method method)Deprecated.Append the path from aPath-annotated method to the existing path.javax.ws.rs.core.UriBuilderpath(java.lang.String pathToAppend)Deprecated.Append path to the existing path.private java.util.List<java.lang.CharSequence>pathSegmentsWithMatrix(java.lang.String[] segments)Deprecated.append the given path segments to the current pathjavax.ws.rs.core.UriBuilderport(int port)Deprecated.Set the URI port.javax.ws.rs.core.UriBuilderport(java.lang.String port)Deprecated.Set the URI port.javax.ws.rs.core.UriBuilderqueryParam(java.lang.String name, java.lang.Object... values)Deprecated.Append a query parameter to the existing set of query parameters.javax.ws.rs.core.UriBuilderreplaceMatrix(java.lang.String matrix)Deprecated.Set the matrix parameters of the current final segment of the current URI path.javax.ws.rs.core.UriBuilderreplaceMatrixParam(java.lang.String name, java.lang.Object... values)Deprecated.protected javax.ws.rs.core.UriBuilderreplacePath(java.lang.CharSequence newPath)Deprecated.Replaces the current path with the given path.javax.ws.rs.core.UriBuilderreplacePath(java.lang.String newPath)Deprecated.Set the URI path.javax.ws.rs.core.UriBuilderreplaceQuery(java.lang.String query)Deprecated.Set the URI query string.javax.ws.rs.core.UriBuilderreplaceQueryParam(java.lang.String name, java.lang.Object... values)Deprecated.javax.ws.rs.core.UriBuilderscheme(java.lang.String scheme)Deprecated.Set the URI scheme.javax.ws.rs.core.UriBuilderschemeSpecificPart(java.lang.String ssp)Deprecated.Set the URI scheme-specific-part (seeURI).javax.ws.rs.core.UriBuildersegment(java.lang.String... segments)Deprecated.Append path segments to the existing path.java.lang.StringtoString()Deprecated.Returns the actual URI as String.private java.lang.StringtoString(boolean convertBraces)Deprecated.Returns the actual URI as String.private java.lang.StringtoStringWithCheck(boolean convertBraces)Deprecated.Returns the actual URI as String.javax.ws.rs.core.UriBuilderuri(java.net.URI uri)Deprecated.Copies the non-null components of the supplied URI to the UriBuilder replacing any existing values for those components.javax.ws.rs.core.UriBuilderuserInfo(java.lang.String userInfo)Deprecated.Set the URI user-info.
-
-
-
Field Detail
-
fragment
private java.lang.CharSequence fragment
Deprecated.StringorStringBuilder. It is flexible to avoid unnecessary converting.
-
host
private java.lang.String host
Deprecated.no converting or appending necessary.
-
path
private java.lang.CharSequence path
Deprecated.StringorStringBuilder. It is flexible to avoid unnecessary converting.
-
port
private java.lang.String port
Deprecated.
-
query
private java.lang.CharSequence query
Deprecated.StringorStringBuilder. It is flexible to avoid unnecessary converting.
-
scheme
private java.lang.String scheme
Deprecated.no converting or appending necessary.
-
userInfo
private java.lang.CharSequence userInfo
Deprecated.StringorStringBuilder. It is flexible to avoid unnecessary converting.
-
-
Method Detail
-
addValidPathSegment
private void addValidPathSegment(java.lang.CharSequence newPathSegment)
Deprecated.adds a valid (encoded or checked) path segment. The path may start with "/" or not, but must not be null.- Parameters:
path-newPathSegment-
-
addValidPathSegments
private void addValidPathSegments(java.util.List<java.lang.CharSequence> newPathSegments)
Deprecated.adds a valid (encoded or checked) path segment. The elements may start with "/" or not, but must not be null.- Parameters:
newPathSegments-
-
build
public java.net.URI build(java.lang.Object... values) throws java.lang.IllegalArgumentException, javax.ws.rs.core.UriBuilderExceptionDeprecated.Build a URI, using the supplied values in order to replace any URI template parameters. Values are converted toStringusing theirtoStringmethod and are then encoded to match the rules of the URI component to which they pertain. All '%' characters in the stringified values will be encoded. The state of the builder is unaffected; this method may be called multiple times on the same builder instance.All instances of the same template parameter will be replaced by the same value that corresponds to the position of the first instance of the template parameter. e.g. the template "{a}/{b}/{a}" with values {"x", "y", "z"} will result in the the URI "x/y/x", not "x/y/z".
- Specified by:
buildin classjavax.ws.rs.core.UriBuilder- Parameters:
values- a list of URI template parameter values- Returns:
- the URI built from the UriBuilder
- Throws:
java.lang.IllegalArgumentException- if there are any URI template parameters without a supplied value, or if a value is null.javax.ws.rs.core.UriBuilderException- if a URI cannot be constructed based on the current state of the builder.- See Also:
UriBuilder.build(java.lang.Object[])
-
buildFromEncoded
public java.net.URI buildFromEncoded(java.lang.Object... values) throws java.lang.IllegalArgumentException, javax.ws.rs.core.UriBuilderExceptionDeprecated.- Specified by:
buildFromEncodedin classjavax.ws.rs.core.UriBuilder- Throws:
java.lang.IllegalArgumentExceptionjavax.ws.rs.core.UriBuilderException- See Also:
UriBuilder.buildFromEncoded(java.lang.Object[])
-
buildFromEncodedMap
public java.net.URI buildFromEncodedMap(java.util.Map<java.lang.String,? extends java.lang.Object> values) throws java.lang.IllegalArgumentException, javax.ws.rs.core.UriBuilderExceptionDeprecated.- Specified by:
buildFromEncodedMapin classjavax.ws.rs.core.UriBuilder- Throws:
java.lang.IllegalArgumentExceptionjavax.ws.rs.core.UriBuilderException- See Also:
UriBuilder.buildFromEncodedMap(java.util.Map)
-
buildFromMap
public java.net.URI buildFromMap(java.util.Map<java.lang.String,? extends java.lang.Object> values) throws java.lang.IllegalArgumentException, javax.ws.rs.core.UriBuilderExceptionDeprecated.- Specified by:
buildFromMapin classjavax.ws.rs.core.UriBuilder- Throws:
java.lang.IllegalArgumentExceptionjavax.ws.rs.core.UriBuilderException- See Also:
UriBuilder.buildFromMap(java.util.Map)
-
buildFromMap
private java.net.URI buildFromMap(java.util.Map<java.lang.String,? extends java.lang.Object> values, boolean encode) throws java.lang.IllegalArgumentException, javax.ws.rs.core.UriBuilderExceptionDeprecated.Build a URI, any URI template parameters will be replaced by the value in the supplied map. Thebuildmethod does not change the state of theUriBuilderand it may be called multiple times on the same builder instance.- Parameters:
values- a map of URI template parameter names and valuesencode- true, if the value should be encoded, or false if not.- Returns:
- the URI built from the UriBuilder
- Throws:
java.lang.IllegalArgumentException- if automatic encoding is disabled and a supplied value contains illegal characters, or if there are any URI template parameters without a supplied valuejavax.ws.rs.core.UriBuilderException- if a URI cannot be constructed based on the current state of the builder.- See Also:
UriBuilder.buildFromMap(Map)
-
buildUri
private java.net.URI buildUri(java.lang.String refAsString) throws javax.ws.rs.core.UriBuilderExceptionDeprecated.- Parameters:
refAsString-- Returns:
- Throws:
javax.ws.rs.core.UriBuilderException
-
copyInto
protected void copyInto(AbstractUriBuilder uriBuilder)
Deprecated.- Parameters:
uriBuilder-
-
fragment
public javax.ws.rs.core.UriBuilder fragment(java.lang.String fragment) throws java.lang.IllegalArgumentExceptionDeprecated.Set the URI fragment using an unencoded value.- Specified by:
fragmentin classjavax.ws.rs.core.UriBuilder- Parameters:
fragment- the URI fragment, may contain URI template parameters- Returns:
- the updated UriBuilder
- Throws:
java.lang.IllegalArgumentException- if fragment is null, or if automatic encoding is disabled and fragment contains illegal characters- See Also:
UriBuilder.fragment(java.lang.String)
-
getExtension
protected java.lang.String getExtension()
Deprecated.- Returns:
- the extension of the current state, with a "." at beginning. Is intended to be overriden in subclass ExtendedUriBuilder. Must not return null, "" or ".".
-
getPath
private java.lang.StringBuilder getPath()
Deprecated.- Returns:
- The path as StringBuilder. Ensures, that the returned StringBuilder is available in the instance variable.
-
host
public javax.ws.rs.core.UriBuilder host(java.lang.String host) throws java.lang.IllegalArgumentExceptionDeprecated.Set the URI host.- Specified by:
hostin classjavax.ws.rs.core.UriBuilder- Parameters:
host- the URI host, may contain URI template parameters- Returns:
- the updated UriBuilder
- Throws:
java.lang.IllegalArgumentException- if host is invalid or is null- See Also:
UriBuilder.host(java.lang.String)
-
matrixParam
public javax.ws.rs.core.UriBuilder matrixParam(java.lang.String name, java.lang.Object... values) throws java.lang.IllegalArgumentExceptionDeprecated.Append a matrix parameter to the existing set of matrix parameters of the current final segment of the URI path. If multiple values are supplied the parameter will be added once per value. Note that the matrix parameters are tied to a particular path segment; subsequent addition of path segments will not affect their position in the URI path.- Specified by:
matrixParamin classjavax.ws.rs.core.UriBuilder- Parameters:
name- the matrix parameter name, may contain URI template parametersvalues- the matrix parameter value(s), each object will be converted to aStringusing itstoString()method. Stringified values may contain URI template parameters.- Returns:
- the updated UriBuilder
- Throws:
java.lang.IllegalArgumentException- if name or value is null, or if automatic encoding is disabled and the name or any stringified value contains illegal characters- See Also:
- Matrix
URIs,
UriBuilder.matrixParam(String, Object...)
-
path
protected javax.ws.rs.core.UriBuilder path(java.lang.CharSequence pathToAppend) throws java.lang.IllegalArgumentExceptionDeprecated.Appends the given path to the current path.S- Parameters:
pathToAppend-- Returns:
- the current UriBuilder
- Throws:
java.lang.IllegalArgumentException
-
path
public javax.ws.rs.core.UriBuilder path(java.lang.Class rootResource) throws java.lang.IllegalArgumentExceptionDeprecated.Append path segments from a Path-annotated class to the existing list of segments. When constructing the final path, each segment will be separated by '/' if necessary. The value of the encode property of the Path annotation will be used when processing the value of the @Pathbut it will not be used to modify the state of automatic encoding for the builder.- Specified by:
pathin classjavax.ws.rs.core.UriBuilder- Parameters:
rootResource- a resource whose @Path value will be used to obtain the path segment.- Returns:
- the updated UriBuilder
- Throws:
java.lang.IllegalArgumentException- if resource is null, or if resource.encode is false and resource.value contains illegal characters, or if resource is not annotated with UrPath- See Also:
UriBuilder.path(java.lang.Class)
-
path
public javax.ws.rs.core.UriBuilder path(java.lang.Class rootResource, java.lang.String methodName) throws java.lang.IllegalArgumentExceptionDeprecated.Append path segments from a Path-annotated method to the existing list of segments. When constructing the final path, each segment will be separated by '/' if necessary. This method is a convenience shortcut topath(Method), it can only be used in cases where there is a single method with the specified name that is annotated with @Path.- Specified by:
pathin classjavax.ws.rs.core.UriBuilder- Parameters:
rootResource- the root resource class containing the method.methodName- the name of the method whose @Pathvalue will be used to obtain the path segment.- Returns:
- the updated UriBuilder
- Throws:
java.lang.IllegalArgumentException- if resource or method is null, or if the specified method does not exist, or there is more than or less than one variant of the method annotated with UriPath- See Also:
UriBuilder.path(java.lang.Class, java.lang.String)
-
path
public javax.ws.rs.core.UriBuilder path(java.lang.reflect.Method method) throws java.lang.IllegalArgumentExceptionDeprecated.Append the path from aPath-annotated method to the existing path. When constructing the final path, a '/' separator will be inserted between the existing path and the supplied path if necessary.- Specified by:
pathin classjavax.ws.rs.core.UriBuilder- Parameters:
method- a method whosePathvalue will be used to obtain the path to append to the existing path- Returns:
- the updated UriBuilder
- Throws:
java.lang.IllegalArgumentException- if any element of methods is null or is not annotated with aPath- See Also:
UriBuilder.path(java.lang.reflect.Method)
-
path
public javax.ws.rs.core.UriBuilder path(java.lang.String pathToAppend) throws java.lang.IllegalArgumentExceptionDeprecated.Append path to the existing path. When constructing the final path, a '/' separator will be inserted between the existing path and the supplied path if necessary. Existing '/' characters are preserved thus a single value can represent multiple URI path segments.- Specified by:
pathin classjavax.ws.rs.core.UriBuilder- Parameters:
pathToAppend- the path to append to the current path, may contain URI template parameters- Returns:
- the updated UriBuilder
- Throws:
java.lang.IllegalArgumentException- if path is null- See Also:
UriBuilder.path(java.lang.String)
-
pathSegmentsWithMatrix
private java.util.List<java.lang.CharSequence> pathSegmentsWithMatrix(java.lang.String[] segments)
Deprecated.append the given path segments to the current path- Parameters:
segments-- Returns:
-
port
public javax.ws.rs.core.UriBuilder port(int port) throws java.lang.IllegalArgumentExceptionDeprecated.Set the URI port.- Specified by:
portin classjavax.ws.rs.core.UriBuilder- Parameters:
port- the URI port, a value of -1 will unset an explicit port.- Returns:
- the updated UriBuilder
- Throws:
java.lang.IllegalArgumentException- if port is invalid- See Also:
UriBuilder.port(int)
-
port
public javax.ws.rs.core.UriBuilder port(java.lang.String port) throws java.lang.IllegalArgumentExceptionDeprecated.Set the URI port. Only integers or a variable template is allowed- Parameters:
port- the URI port (null will unset an explicit port) or a template variable.- Returns:
- the updated UriBuilder
- Throws:
java.lang.IllegalArgumentException- if given value is invalid- See Also:
port(int)
-
queryParam
public javax.ws.rs.core.UriBuilder queryParam(java.lang.String name, java.lang.Object... values) throws java.lang.IllegalArgumentExceptionDeprecated.Append a query parameter to the existing set of query parameters. If multiple values are supplied the parameter will be added once per value.- Specified by:
queryParamin classjavax.ws.rs.core.UriBuilder- Parameters:
name- the query parameter name, may contain URI template parametersvalues- the query parameter value(s), each object will be converted to aStringusing itstoString()method. Stringified values may contain URI template parameters.- Returns:
- the updated UriBuilder
- Throws:
java.lang.IllegalArgumentException- if name or value is null, or if automatic encoding is disabled and name or value contains illegal characters- See Also:
UriBuilder.queryParam(String, Object...)
-
replaceMatrix
public javax.ws.rs.core.UriBuilder replaceMatrix(java.lang.String matrix) throws java.lang.IllegalArgumentExceptionDeprecated.Set the matrix parameters of the current final segment of the current URI path. This method will overwrite any existing matrix parameters on the current final segment of the current URI path. Note that the matrix parameters are tied to a particular path segment; subsequent addition of path segments will not affect their position in the URI path.- Specified by:
replaceMatrixin classjavax.ws.rs.core.UriBuilder- Parameters:
matrix- the matrix parameters, may contain URI template parameters. A null value will remove all matrix parameters of the current final segment of the current URI path.- Returns:
- the updated UriBuilder
- Throws:
java.lang.IllegalArgumentException- if matrix cannot be parsed, or if automatic encoding is disabled and any matrix parameter name or value contains illegal characters- See Also:
UriBuilder.replaceMatrix(String)
-
replaceMatrixParam
public javax.ws.rs.core.UriBuilder replaceMatrixParam(java.lang.String name, java.lang.Object... values) throws java.lang.IllegalArgumentExceptionDeprecated.- Specified by:
replaceMatrixParamin classjavax.ws.rs.core.UriBuilder- Throws:
java.lang.IllegalArgumentException- See Also:
UriBuilder.replaceMatrixParam(java.lang.String, java.lang.Object[])
-
replacePath
protected javax.ws.rs.core.UriBuilder replacePath(java.lang.CharSequence newPath) throws java.lang.IllegalArgumentExceptionDeprecated.Replaces the current path with the given path. This method checks, if there is an extension in, if needed by this class.- Parameters:
newPath- the new path.- Throws:
java.lang.IllegalArgumentException
-
replacePath
public javax.ws.rs.core.UriBuilder replacePath(java.lang.String newPath) throws java.lang.IllegalArgumentExceptionDeprecated.Set the URI path. This method will overwrite any existing path and associated matrix parameters. Existing '/' characters are preserved thus a single value can represent multiple URI path segments.- Specified by:
replacePathin classjavax.ws.rs.core.UriBuilder- Parameters:
newPath- the path to replace the old path with, may contain URI template parameters. A null value will unset the path component of the URI.- Returns:
- the updated UriBuilder
- Throws:
java.lang.IllegalArgumentException- See Also:
UriBuilder.replacePath(java.lang.String)
-
replaceQuery
public javax.ws.rs.core.UriBuilder replaceQuery(java.lang.String query) throws java.lang.IllegalArgumentExceptionDeprecated.Set the URI query string. This method will overwrite any existing query parameters.- Specified by:
replaceQueryin classjavax.ws.rs.core.UriBuilder- Parameters:
query- the URI query string, may contain URI template parameters. A null value will remove all query parameters.- Returns:
- the updated UriBuilder
- Throws:
java.lang.IllegalArgumentException- if query cannot be parsed- See Also:
UriBuilder.replaceQuery(java.lang.String)
-
replaceQueryParam
public javax.ws.rs.core.UriBuilder replaceQueryParam(java.lang.String name, java.lang.Object... values) throws java.lang.IllegalArgumentExceptionDeprecated.- Specified by:
replaceQueryParamin classjavax.ws.rs.core.UriBuilder- Throws:
java.lang.IllegalArgumentException- See Also:
UriBuilder.replaceQueryParam(String, Object[])
-
scheme
public javax.ws.rs.core.UriBuilder scheme(java.lang.String scheme) throws java.lang.IllegalArgumentExceptionDeprecated.Set the URI scheme.- Specified by:
schemein classjavax.ws.rs.core.UriBuilder- Parameters:
scheme- the URI scheme, may contain URI template parameters- Returns:
- the updated UriBuilder
- Throws:
java.lang.IllegalArgumentException- if scheme is invalid or is null- See Also:
UriBuilder.scheme(java.lang.String)
-
schemeSpecificPart
public javax.ws.rs.core.UriBuilder schemeSpecificPart(java.lang.String ssp) throws java.lang.IllegalArgumentExceptionDeprecated.Set the URI scheme-specific-part (seeURI). This method will overwrite any existing values for authority, user-info, host, port and path.- Specified by:
schemeSpecificPartin classjavax.ws.rs.core.UriBuilder- Parameters:
ssp- the URI scheme-specific-part, may contain URI template parameters- Returns:
- the updated UriBuilder
- Throws:
java.lang.IllegalArgumentException- if ssp cannot be parsed or is null- See Also:
UriBuilder.schemeSpecificPart(java.lang.String)
-
segment
public javax.ws.rs.core.UriBuilder segment(java.lang.String... segments) throws java.lang.IllegalArgumentExceptionDeprecated.Append path segments to the existing path. When constructing the final path, a '/' separator will be inserted between the existing path and the first path segment if necessary and each supplied segment will also be separated by '/'. Existing '/' characters are encoded thus a single value can only represent a single URI path segment.- Specified by:
segmentin classjavax.ws.rs.core.UriBuilder- Parameters:
segments- the path segment values, each may contain URI template parameters- Returns:
- the updated UriBuilder
- Throws:
java.lang.IllegalArgumentException- if segments or any element of segments is null- See Also:
UriBuilder.segment(java.lang.String[])
-
toString
public java.lang.String toString()
Deprecated.Returns the actual URI as String.- Overrides:
toStringin classjava.lang.Object- Returns:
- the actual URI as String.
- See Also:
toStringWithCheck(boolean)
-
toString
private java.lang.String toString(boolean convertBraces)
Deprecated.Returns the actual URI as String.- Parameters:
convertBraces- if true, all braces are converted, if false then not.- Returns:
- the actual URI as
String. Never returns null. - See Also:
toStringWithCheck(boolean)
-
toStringWithCheck
private java.lang.String toStringWithCheck(boolean convertBraces)
Deprecated.Returns the actual URI as String. Check for valid scheme and host before- Parameters:
convertBraces- if true, all braces are converted, if false then not.- Returns:
- the actual URI as String.
- See Also:
toString()
-
uri
public javax.ws.rs.core.UriBuilder uri(java.net.URI uri) throws java.lang.IllegalArgumentExceptionDeprecated.Copies the non-null components of the supplied URI to the UriBuilder replacing any existing values for those components.- Specified by:
uriin classjavax.ws.rs.core.UriBuilder- Parameters:
uri- the URI to copy components from- Returns:
- the updated UriBuilder
- Throws:
java.lang.IllegalArgumentException- if uri is null- See Also:
UriBuilder.uri(java.net.URI)
-
userInfo
public javax.ws.rs.core.UriBuilder userInfo(java.lang.String userInfo) throws java.lang.IllegalArgumentExceptionDeprecated.Set the URI user-info.- Specified by:
userInfoin classjavax.ws.rs.core.UriBuilder- Parameters:
userInfo- the URI user-info, may contain URI template parameters- Returns:
- the updated UriBuilder
- Throws:
java.lang.IllegalArgumentException- if automatic encoding is disabled and the userInfo contains illegal characters, or if the userInfo is null.- See Also:
UriBuilder.userInfo(java.lang.String)
-
-