|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface URL
The URL interface provides methods to access or set
the individual parts of an URL, and to convert strings to URLs and
vice versa.
| Field Summary |
|---|
| Fields inherited from interface org.ogf.saga.SagaObject |
|---|
NO_WAIT, WAIT_FOREVER |
| Method Summary | |
|---|---|
java.lang.String |
getEscaped()
Returns this URL as a string, with escapes added where needed to parse the result as an URL. |
java.lang.String |
getFragment()
Returns the fragment part of this URL. |
java.lang.String |
getHost()
Returns the host part of this URL. |
java.lang.String |
getPath()
Returns the path part of this URL. |
int |
getPort()
Returns the port number of this URL. |
java.lang.String |
getQuery()
Returns the query part from this URL. |
java.lang.String |
getScheme()
Returns the scheme part from this URL. |
java.lang.String |
getString()
Returns this URL as a string. |
java.lang.String |
getUserInfo()
Returns the userinfo part from this URL. |
boolean |
isAbsolute()
See java.net.URI#isAbsolute(). |
URL |
normalize()
See java.net.URI#normalize(). |
URL |
resolve(URL url)
See java.net.URI#resolve(java.net.URI). |
void |
setFragment()
Sets the fragment part of this URL to "". |
void |
setFragment(java.lang.String fragment)
Sets the fragment part of this URL to the specified parameter. |
void |
setHost()
Sets the host part of this URL to "". |
void |
setHost(java.lang.String host)
Sets the host part of this URL to the specified parameter. |
void |
setPath()
Sets the path part of this URL to "". |
void |
setPath(java.lang.String path)
Sets the path part of this URL to the specified parameter. |
void |
setPort()
Sets the port number of this URL to -1. |
void |
setPort(int port)
Sets the port number of this URL to the specified parameter. |
void |
setQuery()
Sets the query part of this URL to "". |
void |
setQuery(java.lang.String query)
Sets the query part of this URL to the specified parameter. |
void |
setScheme()
Sets the scheme part of this URL to the specified parameter. |
void |
setScheme(java.lang.String scheme)
Sets the scheme part of this URL to the specified parameter. |
void |
setString()
Replaces the current value of the URL with "". |
void |
setString(java.lang.String url)
Replaces the current value of the URL with the specified value. |
void |
setUserInfo()
Sets the user info part of this URL to "". |
void |
setUserInfo(java.lang.String userInfo)
Sets the user info part of this URL to the specified parameter. |
URL |
translate(Session session,
java.lang.String scheme)
Returns a new URL with the scheme part replaced. |
URL |
translate(java.lang.String scheme)
Returns a new URL with the scheme part replaced. |
| Methods inherited from interface org.ogf.saga.SagaObject |
|---|
clone, getId, getSession |
| Method Detail |
|---|
void setString(java.lang.String url)
throws BadParameterException
url - the string.
BadParameterException - is thrown when there is a syntax error in the parameter.
void setString()
throws BadParameterException
BadParameterException - is thrown by setString(String).java.lang.String getString()
getEscaped().
java.lang.String getEscaped()
java.lang.String getFragment()
void setFragment(java.lang.String fragment)
throws BadParameterException
fragment - the fragment.
BadParameterException - is thrown when there is a syntax error in the parameter.
void setFragment()
throws BadParameterException
BadParameterException - is thrown by setFragment(String).java.lang.String getHost()
void setHost(java.lang.String host)
throws BadParameterException
host - the host.
BadParameterException - is thrown when there is a syntax error in the parameter.
void setHost()
throws BadParameterException
BadParameterException - is thrown by setHost(String).java.lang.String getPath()
void setPath(java.lang.String path)
throws BadParameterException
path - the path.
BadParameterException - is thrown when there is a syntax error in the path.
void setPath()
throws BadParameterException
BadParameterException - is thrown by setPath(String).int getPort()
void setPort(int port)
throws BadParameterException
port - the port number.
BadParameterException - is thrown when there is an error in the parameter.
void setPort()
throws BadParameterException
BadParameterException - is thrown by setPort().java.lang.String getQuery()
void setQuery(java.lang.String query)
throws BadParameterException
query - the query.
BadParameterException - is thrown when there is a syntax error in the parameter.
void setQuery()
throws BadParameterException
BadParameterException - is thrown by setQuery(String).java.lang.String getScheme()
void setScheme(java.lang.String scheme)
throws BadParameterException
scheme - the scheme.
BadParameterException - is thrown when there is a syntax error in the parameter.
void setScheme()
throws BadParameterException
BadParameterException - is thrown by setScheme(String).java.lang.String getUserInfo()
void setUserInfo(java.lang.String userInfo)
throws BadParameterException
userInfo - the userinfo.
BadParameterException - is thrown when there is a syntax error in the parameter.
void setUserInfo()
throws BadParameterException
BadParameterException - is thrown by setUserInfo(String).
URL translate(java.lang.String scheme)
throws BadParameterException,
NoSuccessException
scheme - the new scheme.
BadParameterException - is thrown when there is a syntax error in the new URL.
NoSuccessException - is thrown when the scheme is supported, but the URL
cannot be translated to the scheme.
URL translate(Session session,
java.lang.String scheme)
throws BadParameterException,
NoSuccessException
session - session to be used for possibly-needed back-end communication.scheme - the new scheme.
BadParameterException - is thrown when there is a syntax error in the new URL.
NoSuccessException - is thrown when the scheme is supported, but the URL
cannot be translated to the scheme.
URL resolve(URL url)
throws NoSuccessException
java.net.URI#resolve(java.net.URI).
url - the url to resolve with respect to this one.
NoSuccessException - is thrown when resolving fails for some reason.boolean isAbsolute()
java.net.URI#isAbsolute().
URL normalize()
java.net.URI#normalize().
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||