BaseTag Class
- public abstract class BaseTag
extends TagSupport
Base class for all client-awareness content filtering tags.
-
Hierarchy
-
Object
TagSupport
BaseTag
-
All Implemented Interfaces
-
IterationTag
, Serializable
, Tag
-
Direct Known Subclasses
-
ClientTag
, DefaultTag
, NotClientTag
, NotDefaultTag
, NotRecognizedTag
, RecognizedTag
protected String |
-
client
- The client list (comma delimited) this tag should match.
|
protected static Debug |
-
debug
- Debug
|
public String |
-
getClient ()
- Gets the client classification list for this tag (NOT the effective client classification).
|
public boolean |
-
isDefault ()
- Method for determining if client classification of the current request is "default".
|
public boolean |
-
isMatch ()
- Method for determining tag client classification / current request's client
classification match.
|
public boolean |
-
isRecognized ()
- Method for determining if client classification of the current request is recognized.
|
public void |
-
release ()
- Releases the tag.
|
public void |
-
setClient (String c)
- Sets the client classification list for this tag (NOT the effective client classification).
|
Methods from javax.servlet.jsp.tagext.TagSupport |
doAfterBody, doEndTag, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
client
protected String
client
- The client list (comma delimited) this tag should match.
debug
protected static Debug
debug
BaseTag
public BaseTag()
getClient() Method
public String
getClient()
Gets the client classification list for this tag (NOT the effective client classification).
isDefault() Method
public boolean isDefault()
Method for determining if client classification of the current request is "default".
Returns
true
if the client classification of the request is "default".
isMatch() Method
public boolean isMatch()
Method for determining tag client classification / current request's client
classification match. If a client classification referenced in the tag matches
with the actual client classification of the current request, it is a match.
Returns
true
if the client classification of the current request is contained in the tag's list of client classifications.
isRecognized() Method
public boolean isRecognized()
Method for determining if client classification of the current request is recognized.
Recognized means that the user agent is explicitly mapped to a client classification
in the repository.
Returns
true
if the client classification of the request is recognized.
release() Method
public void release()
Releases the tag.
-
Overrides
-
TagSupport.release()
setClient(String) Method
public void setClient(String
c)
Sets the client classification list for this tag (NOT the effective client classification).