Package overit.geocall.util.hyperlink
Class Resource
java.lang.Object
overit.geocall.util.hyperlink.Resource
Class used to manage an HTML Resource
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd as last steps the resourcebooleangetPage()Returns the associated Resource pageReturns the servlet context only if the resource path is absoluteinthashCode()booleanReturns if the path is absolutebooleanReturns if the page is explicitvoidMethod to merge two ResourcevoidRelativize the path if is absolutevoidSets the associated Resource pagevoidSets the servlet context only if the path is absolutetoString()
-
Field Details
-
_steps
-
_absolute
protected boolean _absolute
-
-
Constructor Details
-
Resource
Constructor of a Resource- Parameters:
p- String containing the Resource
-
-
Method Details
-
getPage
Returns the associated Resource page- Returns:
- The associated Resource page
-
setPage
Sets the associated Resource page- Parameters:
p- The associated Resource page
-
getServletContext
Returns the servlet context only if the resource path is absolute- Returns:
- The servlet context
-
setServletContext
Sets the servlet context only if the path is absolute- Parameters:
c- The servlet context
-
isExplicit
public boolean isExplicit()Returns if the page is explicit- Returns:
trueif the page is explicit,falseotherwise
-
isAbsolute
public boolean isAbsolute()Returns if the path is absolute- Returns:
trueif the path is absolute,falseotherwise
-
toString
-
concat
Add as last steps the resource- Parameters:
r- The resource to add
-
relativize
Relativize the path if is absolute- Parameters:
r- The Resource
-
merge
Method to merge two Resource- Parameters:
r- The Resource to merge
-
equals
-
hashCode
public int hashCode()
-