# com.bea.commerce.ebusiness.tracking.tags
ProductEventTag Class

public class ProductEventTag
extends `TagSupport`

The tag handler of the behavior tracking tag display. This tag is a base tag that will be used by other XXXXProductTags and only validates information that is common to the latter.

Hierarchy
  `Object`
  `TagSupport`
  `ProductEventTag`

All Implemented Interfaces
  `IterationTag`, `Serializable`, `Tag`

Direct Known Subclasses
  `DisplayProductEventTag`

## Field Summary

`protected `String`` | `applicationName` String
`protected `String`` | `categoryId` String
`protected `String`` | `documentId` String
`protected `String`` | `documentType` String
`protected `String`` | `sessionId` String
`protected `String`` | `sku` String
`protected `String`` | `userId` String

Fields from javax.servlet.jsp.tagext`.`TagSupport``
`id, pageContext`

Fields from interface javax.servlet.jsp.tagext`.`IterationTag``
`EVAL_BODY_AGAIN`

Fields from interface javax.servlet.jsp.tagext`.`Tag``
`EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE`

## Constructor Summary

ProductEventTag()

## Method Summary

`public int` | `doStartTag`() Implement the StartTag callback.
`public `String`` | `getApplicationName`() Get the applicationName
`public `String`` | `getCategoryId`() Get the categoryId
`public `String`` | `getDocumentId`() Get the documentId
`public `String`` | `getDocumentType`() Get the documentType
`public `String`` | `getSku`() Get the Sku
`protected void` | `log`(int logLevel, `String` message)
`public void` | `release`()
`public void` | `setApplicationName`(`String` theApplicationName) Set the applicationName
`public void` | `setCategoryId`(`String` theCategoryId) Set the categoryId
`public void` | `setCategoryId`(`Category` theCategory) Set the categoryId using a Category
`public void` | `setDocumentId`(`String` theDocumentId) Set the documentId
`public void` | `setDocumentType`(`String` theDocumentType) Set the documentType
`public void` | `setSku`(`String` theSku) Set the sku
`public void` | `setSku`(`ProductItem` theProduct) Set the sku using a ProductItem
`protected void` | `throwException`(`String` message, `Object` messageObject)
`protected void` | `throwException`(`String` message)

Methods from `javax.servlet.jsp.tagext.`TagSupport``
`doAfterBody, doEndTag, 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`

Methods from interface `javax.servlet.jsp.tagext.`IterationTag``
`doAfterBody`

Methods from interface `javax.servlet.jsp.tagext.`Tag``
`doEndTag, doStartTag, getParent, release, setPageContext, setParent`

## Field Detail

### applicationName

    protected String applicationName

### categoryId

    protected String categoryId

### documentId

    protected String documentId

### documentType

    protected String documentType

### sessionId

    protected String sessionId

### sku

    protected String sku

### userId

    protected String userId

## Constructor Detail

### ProductEventTag

    public ProductEventTag()

## Method Detail

### doStartTag() Method

    public int doStartTag()
         throws JspTagException

Implement the StartTag callback. This only does some validation common to tags of this type.

Overrides
  `TagSupport.doStartTag()`

#### Exceptions

``JspTagException``

### getApplicationName() Method

    public String getApplicationName()

Get the applicationName

#### Returns

String the applicationName

### getCategoryId() Method

    public String getCategoryId()

Get the categoryId

#### Returns

String the categoryId

### getDocumentId() Method

    public String getDocumentId()

Get the documentId

#### Returns

String the documentId

### getDocumentType() Method

    public String getDocumentType()

Get the documentType

#### Returns

String the documentType

### getSku() Method

    public String getSku()

Get the Sku

#### Returns

String the sku

### log(int, String) Method

    protected void log(int logLevel,
                       String message)

### release() Method

    public void release()

Overrides
  `TagSupport.release()`

### setApplicationName(String) Method

    public void setApplicationName(String theApplicationName)

Set the applicationName

#### Parameters

theApplicationName
  applicationName to set to

### setCategoryId(String) Method

    public void setCategoryId(String theCategoryId)

Set the categoryId

#### Parameters

theCategoryId
  categoryId to set to

### setCategoryId(Category) Method

    public void setCategoryId(Category theCategory)

Set the categoryId using a Category

#### Parameters

theCategory
  Category used to get categoryId

### setDocumentId(String) Method

    public void setDocumentId(String theDocumentId)

Set the documentId

#### Parameters

theDocumentId
  documentId to set to

### setDocumentType(String) Method

    public void setDocumentType(String theDocumentType)

Set the documentType

#### Parameters

theDocumentType
  documentType to set to

### setSku(String) Method

    public void setSku(String theSku)

Set the sku

#### Parameters

theSku
  sku to set to

### setSku(ProductItem) Method

    public void setSku(ProductItem theProduct)

Set the sku using a ProductItem

#### Parameters

theProduct
  ProductItem used to get sku

### throwException(String, Object) Method

    protected void throwException(String message,
                                  Object messageObject)
         throws JspTagException

#### Exceptions

``JspTagException``

### throwException(String) Method

    protected void throwException(String message)
         throws JspTagException

#### Exceptions

``JspTagException``