Package org.jupnp.util
Klasse URIUtil
java.lang.Object
org.jupnp.util.URIUtil
- Autor:
- Christian Bauer
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final BitSetImplementation of path/query/fragment encoding as explained here: http://www.lunatech-research.com/archives/2009/02/03/what-every-web-developer-must-know-about-url-encodingstatic final BitSetstatic final BitSetstatic final BitSetstatic final BitSetstatic final BitSet -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic voidassertRelativeURI(String what, URI uri) static URIcreateAbsoluteURI(URI base, String uri) Guarantees that the returned URI is absolute, no matter what the argument is.static URIcreateAbsoluteURI(URI base, URI relativeOrNot) static URLcreateAbsoluteURL(InetAddress address, int localStreamPort, URI relativeOrNot) static URLcreateAbsoluteURL(URI base, URI relativeOrNot) static URLcreateAbsoluteURL(URL base, String uri) static URLcreateAbsoluteURL(URL base, URI relativeOrNot) static URIcreateRelativePathURI(URI uri) static URIcreateRelativeURI(URI base, URI full) static URIcreateRelativeURI(URI base, URL full) static URIcreateRelativeURI(URL base, URI full) static URIcreateRelativeURI(URL base, URL full) static Stringstatic StringencodeFragment(String fragment) static StringencodePathParamName(String pathParamName) static StringencodePathParamValue(String pathParamValue) static StringencodePathSegment(String pathSegment) static StringencodeQueryNameOrValue(String queryNameOrValue) static booleanstatic Stringstatic Stringstatic URIstatic URL
-
Felddetails
-
ALLOWED
Implementation of path/query/fragment encoding as explained here: http://www.lunatech-research.com/archives/2009/02/03/what-every-web-developer-must-know-about-url-encoding -
PATH_SEGMENT
-
PATH_PARAM_NAME
-
PATH_PARAM_VALUE
-
QUERY
-
FRAGMENT
-
-
Konstruktordetails
-
URIUtil
public URIUtil()
-
-
Methodendetails
-
createAbsoluteURI
Guarantees that the returned URI is absolute, no matter what the argument is.- Parameter:
base- An absolute base URI, can be null!uri- A string that either represents a relative or an already absolute URI- Gibt zurück:
- An absolute URI
- Löst aus:
IllegalArgumentException- If the base URI is null and the given URI string is not absolute
-
createAbsoluteURI
- Löst aus:
IllegalArgumentException
-
createAbsoluteURL
- Löst aus:
IllegalArgumentException
-
createAbsoluteURL
- Löst aus:
IllegalArgumentException
-
createAbsoluteURL
- Löst aus:
IllegalArgumentException
-
createAbsoluteURL
public static URL createAbsoluteURL(InetAddress address, int localStreamPort, URI relativeOrNot) throws IllegalArgumentException - Löst aus:
IllegalArgumentException
-
createRelativePathURI
-
createRelativeURI
-
createRelativeURI
- Löst aus:
IllegalArgumentException
-
createRelativeURI
- Löst aus:
IllegalArgumentException
-
createRelativeURI
- Löst aus:
IllegalArgumentException
-
isAbsoluteURI
-
assertRelativeURI
-
toURL
-
toURI
-
percentEncode
-
percentDecode
-
encodePathSegment
-
encodePathParamName
-
encodePathParamValue
-
encodeQueryNameOrValue
-
encodeFragment
-
encode
-