© 2005 BEA Systems, Inc.

com.bea.netuix.client.jsp.clienttaglib
Class BaseTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended bycom.bea.netuix.client.jsp.clienttaglib.BaseTag
All Implemented Interfaces:
IterationTag, Serializable, Tag
Direct Known Subclasses:
ClientTag, DefaultTag, NotClientTag, NotDefaultTag, NotRecognizedTag, RecognizedTag

public abstract class BaseTag
extends TagSupport

Base class for all client-awareness content filtering tags.

See Also:
Serialized Form

Field Summary
protected  String client
          The client list (comma delimited) this tag should match.
protected static Debug debug
           
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
BaseTag()
           
 
Method Summary
 String getClient()
          Gets the client classification list for this tag (NOT the effective client classification).
 boolean isDefault()
          Method for determining if client classification of the current request is "default".
 boolean isMatch()
          Method for determining tag client classification / current request's client classification match.
 boolean isRecognized()
          Method for determining if client classification of the current request is recognized.
 void release()
          Releases the tag.
 void setClient(String c)
          Sets the client classification list for this tag (NOT the effective client classification).
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

client

protected String client
The client list (comma delimited) this tag should match.


debug

protected static Debug debug
Constructor Detail

BaseTag

public BaseTag()
Method Detail

getClient

public String getClient()
Gets the client classification list for this tag (NOT the effective client classification).


isDefault

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

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

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

public void release()
Releases the tag.


setClient

public void setClient(String c)
Sets the client classification list for this tag (NOT the effective client classification).


© 2005 BEA Systems, Inc.

Copyright © 2005 BEA Systems, Inc. All Rights Reserved