|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensaml.util.URLBuilder
public class URLBuilder
Utility class for building URLs. May also be used to parse a URL into its invidual components. All components will be converted UTF-8 encoding and then application/x-www-form-urlencoded when built. This class is not thread-safe.
Constructor Summary | |
---|---|
URLBuilder()
Constructor. |
|
URLBuilder(String baseURL)
Constructor. |
Method Summary | |
---|---|
String |
buildQueryString()
Builds the query string for the URL. |
String |
buildURL()
Builds a URL from the given data. |
String |
getFragment()
Gets the URL fragment in its decoded form. |
String |
getHost()
Gets the host component of the URL. |
String |
getPassword()
Gets the user's password in the URL. |
String |
getPath()
Gets the path component of the URL. |
int |
getPort()
Gets the port component of the URL. |
List<org.opensaml.xml.util.Pair<String,String>> |
getQueryParams()
Gets the query string parameters for the URL. |
String |
getScheme()
Gets the URL scheme (http, https, etc). |
String |
getUsername()
Gets the user name component of the URL. |
void |
setFragment(String newFragment)
Sets the URL fragment in its decoded form. |
void |
setHost(String newHost)
Sets the host component of the URL. |
void |
setPassword(String newPassword)
Sets the user's password in the URL. |
void |
setPath(String newPath)
Sets the path component of the URL. |
void |
setPort(int newPort)
Sets the port component of the URL. |
void |
setScheme(String newScheme)
Sets the URL scheme (http, https, etc). |
void |
setUsername(String newUsername)
Sets the user name component of the URL. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public URLBuilder()
public URLBuilder(String baseURL)
baseURL
- URL to parse and use as basis for creating other URLs
IllegalArgumentException
- thrown if the given base URL is not well formedMethod Detail |
---|
public String getFragment()
public void setFragment(String newFragment)
newFragment
- URL fragment in its decoded formpublic String getHost()
public void setHost(String newHost)
newHost
- host component of the URLpublic String getPassword()
public void setPassword(String newPassword)
newPassword
- user's password in the URLpublic String getPath()
public void setPath(String newPath)
newPath
- path component of the URLpublic int getPort()
public void setPort(int newPort)
newPort
- port component of the URLpublic List<org.opensaml.xml.util.Pair<String,String>> getQueryParams()
public String getScheme()
public void setScheme(String newScheme)
newScheme
- URL scheme (http, https, etc)public String getUsername()
public void setUsername(String newUsername)
newUsername
- user name component of the URLpublic String buildURL()
public String buildQueryString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |