|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.designer.runtime.UrlObject com.ibm.xsp.designer.context.XSPUrl
public class XSPUrl
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.ibm.designer.runtime.UrlObject |
---|
com.ibm.designer.runtime.UrlObject.Parameter |
Field Summary |
---|
Fields inherited from class com.ibm.designer.runtime.UrlObject |
---|
fragment, host, parameters, password, path, port, scheme, username |
Constructor Summary | |
---|---|
XSPUrl()
Default constructor for RuntimeUrl |
|
XSPUrl(java.lang.String urlStr)
Creates an RuntimeUrl object |
Method Summary | |
---|---|
static java.lang.String |
_decodeString(java.lang.String str)
Not public . |
static java.lang.String |
_encodeString(java.lang.String str)
Not public . |
java.lang.Object |
clone()
|
XSPUrl |
cloneUrl()
Return a clone of this RuntimeUrl or null if cloning is not supported |
static java.lang.String |
decodeParameter(java.lang.String param)
Decode the string parameter witch is encoded into application/w-www-form-urlencoded format. |
static java.lang.String |
decodeParameter(java.lang.String param,
java.lang.String enc)
Decode the string parameter witch is encoded into application/w-www-form-urlencoded format using the specify encoding scheme. |
static java.lang.String |
encodeParameter(java.lang.String param)
Encode the string parameter by translating it into application/w-www-form-urlencoded format. |
static java.lang.String |
encodeParameter(java.lang.String param,
java.lang.String enc)
Encode the string parameter by translating it into application/w-www-form-urlencoded format. |
java.lang.String |
getAddress()
Gets the full address of the URL Builds a string of the form 'scheme://host:port/path' The scheme, host, port and fragment will appear in the string only if they have a non-empty value. |
protected java.lang.String |
getContextPath(XSPContext context)
|
java.lang.String |
getFragment()
Gets the fragment (reference) included in the URL |
java.lang.String |
getHost()
Get the host name or address |
java.lang.String |
getParameter(java.lang.String name)
Gets the value of a query string parameter, by name |
java.lang.String |
getParameterName(int index)
Gets the name of a query string parameter, by index |
int |
getParametersCount()
Gets the number of parameters in the query string |
java.lang.String |
getPath()
Gets the path included in the URL |
int |
getPort()
Gets the port number |
java.lang.String |
getQueryString()
Gets the whole query string, including the first '?' |
java.lang.String |
getScheme()
Gets the scheme (protocol) of the URL |
java.lang.String |
getSiteRelativeAddress(XSPContext context)
Gets the address of the URL, starting with the root directory Builds a string of the form '/path' The scheme, host, port and fragment are ignored |
boolean |
hasParameter(java.lang.String name)
Tests the existence of a query string parameter |
void |
removeAllParameters()
Removes all the query string parameters |
void |
removeParameter(java.lang.String name)
Removes a query string parameter by name |
void |
setAddress(java.lang.String address)
Sets the full address of the URL. |
void |
setFragment(java.lang.String fragment)
Sets the fragment (reference) in the URL |
void |
setHost(java.lang.String host)
Sets the host name or address |
void |
setParameter(java.lang.String name,
java.lang.String value)
Sets the value of a query string parameter The parameter may be an existing one, and in that case its value is replaced by the new value, or a new parameter. |
void |
setPath(java.lang.String path)
Sets the path in the URL |
void |
setPort(int port)
Sets the port number of the URL |
void |
setScheme(java.lang.String scheme)
Sets the scheme (protocol) of the URL |
java.lang.String |
toSiteRelativeString(XSPContext context)
Writes the URL as a string, in a site-relative form |
java.lang.String |
toString()
Writes the URL as a string |
Methods inherited from class com.ibm.designer.runtime.UrlObject |
---|
doDecodeParameter, doDecodeParameter, doEncodeParameter, doEncodeParameter, getFragmenStringUtil, getParameterEntry, getParameterEntry, getPassword, getUsername, setPassword, setQueryString, setUsername |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XSPUrl()
public XSPUrl(java.lang.String urlStr)
url
- url StringMethod Detail |
---|
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class com.ibm.designer.runtime.UrlObject
java.lang.CloneNotSupportedException
public XSPUrl cloneUrl()
public java.lang.String getQueryString()
getQueryString
in class com.ibm.designer.runtime.UrlObject
public java.lang.String toString()
toString
in class com.ibm.designer.runtime.UrlObject
public java.lang.String toSiteRelativeString(XSPContext context)
public java.lang.String getScheme()
getScheme
in class com.ibm.designer.runtime.UrlObject
public void setScheme(java.lang.String scheme)
setScheme
in class com.ibm.designer.runtime.UrlObject
scheme
- the new schemepublic java.lang.String getHost()
getHost
in class com.ibm.designer.runtime.UrlObject
public void setHost(java.lang.String host)
setHost
in class com.ibm.designer.runtime.UrlObject
host
- the new host name or addresspublic int getPort()
getPort
in class com.ibm.designer.runtime.UrlObject
public void setPort(int port)
setPort
in class com.ibm.designer.runtime.UrlObject
port
- the new port number, or -1 to remove any port numberpublic java.lang.String getPath()
getPath
in class com.ibm.designer.runtime.UrlObject
public void setPath(java.lang.String path)
setPath
in class com.ibm.designer.runtime.UrlObject
path
- the new pathpublic java.lang.String getFragment()
getFragment
in class com.ibm.designer.runtime.UrlObject
public void setFragment(java.lang.String fragment)
setFragment
in class com.ibm.designer.runtime.UrlObject
fragment
- the fragment valuepublic java.lang.String getAddress()
getAddress
in class com.ibm.designer.runtime.UrlObject
public java.lang.String getSiteRelativeAddress(XSPContext context)
protected java.lang.String getContextPath(XSPContext context)
public void setAddress(java.lang.String address)
setAddress
in class com.ibm.designer.runtime.UrlObject
address
- the string to be parsed as the new URL addresspublic int getParametersCount()
getParametersCount
in class com.ibm.designer.runtime.UrlObject
public java.lang.String getParameterName(int index)
getParameterName
in class com.ibm.designer.runtime.UrlObject
index
- index value in the query string parameters ; first is 0
public boolean hasParameter(java.lang.String name)
hasParameter
in class com.ibm.designer.runtime.UrlObject
name
- the name of the parameter to look for
public void removeParameter(java.lang.String name)
removeParameter
in class com.ibm.designer.runtime.UrlObject
name
- the name of the parameter to removepublic void removeAllParameters()
removeAllParameters
in class com.ibm.designer.runtime.UrlObject
public java.lang.String getParameter(java.lang.String name)
getParameter
in class com.ibm.designer.runtime.UrlObject
name
- the name of the query string parameter
public void setParameter(java.lang.String name, java.lang.String value)
setParameter
in class com.ibm.designer.runtime.UrlObject
name
- the name of the query string paramvalue
- the new value of the parameterpublic static java.lang.String encodeParameter(java.lang.String param)
param
- the string parameter to encode
public static java.lang.String encodeParameter(java.lang.String param, java.lang.String enc)
param
- the string parameter to encodeenc
- the name of the character encoding
public static java.lang.String decodeParameter(java.lang.String param)
param
- the string parameter to decode
public static java.lang.String decodeParameter(java.lang.String param, java.lang.String enc)
param
- the string parameter to decodeenc
- the name of the character encoding
public static java.lang.String _encodeString(java.lang.String str)
public
. Do not use.
str
-
public static java.lang.String _decodeString(java.lang.String str)
public
. Do not use.
str
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |