public class URI extends Object
| Constructor and Description |
|---|
URI(String uriString) |
URI(String scheme,
String ssp,
String fragment) |
URI(String scheme,
String userInfo,
String host,
int port,
String path,
String query,
String fragment) |
URI(String scheme,
String authority,
String path,
String query,
String fragment) |
public URI(String scheme, String userInfo, String host, int port, String path, String query, String fragment) throws URISyntaxException
URISyntaxExceptionpublic URI(String scheme, String authority, String path, String query, String fragment) throws URISyntaxException
URISyntaxExceptionpublic URI(String scheme, String ssp, String fragment) throws URISyntaxException
URISyntaxExceptionpublic URI(String uriString) throws URISyntaxException
URISyntaxExceptionprotected void setScheme(String scheme) throws URISyntaxException
URISyntaxExceptionprotected void setSchemeSpecificPart(String ssp, boolean encode) throws URISyntaxException
URISyntaxExceptionprotected void setAuthority(String newAuthority, boolean encode) throws URISyntaxException
URISyntaxExceptionprotected void setQuery(String query, boolean encode) throws URISyntaxException
URISyntaxExceptionprotected void setPath(String path, boolean encode) throws URISyntaxException
URISyntaxExceptionprotected void setAuthority(String host, int port, String userInfo, boolean encode) throws URISyntaxException
URISyntaxExceptionprotected void setFragment(String fragment, boolean encode)
protected String rebuildSchemeSpecificPart()
protected void parseURI(String uriString) throws URISyntaxException
URISyntaxExceptionprotected void parseSchemeSpecificPart(String ssp, boolean encode) throws URISyntaxException
URISyntaxExceptionpublic String getScheme()
public String getHost()
public int getPort()
public String getPath()
public String getRawPath()
public String getQuery()
public String getRawQuery()
public String getFragment()
public String getRawFragment()
public String getSchemeSpecificPart()
public String getRawSchemeSpecificPart()
public String getAuthority()
public String getRawAuthority()
public String getUserInfo()
public String getRawUserInfo()
public boolean isOpaque()
public boolean isAbsolute()
public String toASCIIString()
public URI normalize()
Copyright © 2026. All rights reserved.