Package overit.geocall.util.hyperlink
Class Hyperlink
java.lang.Object
overit.geocall.util.hyperlink.Hyperlink
Class used to manage an Hyperlink
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd an HyperlinkReturns theAnchorintgetPort()Return the number of the portgetQuery()Returns theQueryReturns theResourceReturns theSchemaReturns theServerstatic voidvoidTo adjustprotected voidprotected voidvoidSets theAnchorvoidsetPort(int p) Sets the number of the portvoidSets theQueryvoidSets theResourcevoidSets theSchemavoidSets theServervoidSets the url of the HyperlinkvoidtoString()protected voidvalidate()
-
Field Details
-
_schema
-
_server
-
_resource
-
_port
protected int _port -
_query
-
_anchor
-
-
Constructor Details
-
Hyperlink
public Hyperlink()Intentionally blank constructor -
Hyperlink
Creates an Hyperlink from the URL of another Hyperlink- Parameters:
h- The Hyperlink
-
Hyperlink
Creates an Hyperlink from an URL- Parameters:
url- The url- Throws:
MalformedURLException- if the URL is malformed
-
-
Method Details
-
setUrl
Sets the url of the Hyperlink- Parameters:
url- The URL to set- Throws:
MalformedURLException- il the URL is malformed
-
parseServerPort
- Throws:
MalformedURLException
-
parseResourceQueryAnchor
- Throws:
MalformedURLException
-
getSchema
Returns theSchema- Returns:
- The
Schema
-
setSchema
Sets theSchema- Parameters:
s- TheSchema
-
getServer
Returns theServer- Returns:
- The
Server
-
setServer
Sets theServer- Parameters:
s- TheServer
-
getResource
Returns theResource- Returns:
- The
Resource
-
setResource
Sets theResource- Parameters:
r- TheResource
-
getQuery
Returns theQuery- Returns:
- The
Query
-
setQuery
Sets theQuery- Parameters:
q- TheQuery
-
getAnchor
Returns theAnchor- Returns:
- The
Anchor
-
setAnchor
Sets theAnchor- Parameters:
a- TheAnchor
-
getPort
public int getPort()Return the number of the port- Returns:
- The number of the port
-
setPort
public void setPort(int p) Sets the number of the port- Parameters:
p- The number of the port
-
toString
-
sub
-
add
Add an Hyperlink- Parameters:
h- The Hyperlink to add
-
merge
To adjust- Parameters:
h- The Hyperlink
-
validate
protected void validate() -
main
- Throws:
Exception
-