com.acsinet_solutions.util
Class URLLink

java.lang.Object
  extended by com.acsinet_solutions.util.AbstractLink
      extended by com.acsinet_solutions.util.URLLink
All Implemented Interfaces:
Link, ParameterAppender, java.io.Serializable

public final class URLLink
extends AbstractLink

Implementation of a simple URLLink instance

Author:
Santiago Arriaga
See Also:
Serialized Form

Constructor Summary
URLLink(java.lang.String page)
          Page based Constructor
URLLink(java.lang.String page, java.util.Map<java.lang.String,java.lang.String> params)
          Current request page constructor
URLLink(URLLink other)
          Public constructor
 
Method Summary
 java.lang.String getPage()
          Get the page value
 java.lang.String getSection()
          Returns the section.
 void setSection(java.lang.String section)
          Sets the section.
 java.lang.String toString()
          Get the suffix string
 java.lang.String toString(java.lang.Object context)
          Context reference is not used for this class.
 
Methods inherited from class com.acsinet_solutions.util.AbstractLink
addParameter, getParameter, getParameters, getSuffixAppender, removeParameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

URLLink

public URLLink(URLLink other)
Public constructor

Parameters:
other - A not-null URLLink instance

URLLink

public URLLink(java.lang.String page)
Page based Constructor

Parameters:
page - A not-null String instance

URLLink

public URLLink(java.lang.String page,
               java.util.Map<java.lang.String,java.lang.String> params)
Current request page constructor

Parameters:
request - A not-null HttpServletRequest instance
Method Detail

toString

public final java.lang.String toString(java.lang.Object context)
Context reference is not used for this class.


getPage

public final java.lang.String getPage()
Get the page value


getSection

public final java.lang.String getSection()
Returns the section.

Returns:
String

setSection

public final void setSection(java.lang.String section)
Sets the section.

Parameters:
section - The section to set

toString

public final java.lang.String toString()
Get the suffix string

Overrides:
toString in class java.lang.Object