public class HeaderTag
extends javax.servlet.jsp.tagext.TagSupport
| Modifier and Type | Field and Description |
|---|---|
protected String |
id
The name of the scripting variable that will be exposed as a page scope
attribute.
|
protected static MessageResources |
messages
The message resources for this package.
|
protected String |
multiple
Return an array of header values if
multiple is non-null. |
protected String |
name
The name of the header whose value is to be exposed.
|
protected String |
value
The default value to return if no header of the specified name is
found.
|
| Constructor and Description |
|---|
HeaderTag() |
| Modifier and Type | Method and Description |
|---|---|
int |
doStartTag()
Retrieve the required property and expose it as a scripting variable.
|
String |
getId() |
String |
getMultiple() |
String |
getName() |
String |
getValue() |
protected void |
handleMultipleHeaders()
Expose an array of header values.
|
protected void |
handleSingleHeader()
Expose a single header value.
|
void |
release()
Release all allocated resources.
|
void |
setId(String id) |
void |
setMultiple(String multiple) |
void |
setName(String name) |
void |
setValue(String value) |
protected static MessageResources messages
protected String id
protected String multiple
multiple is non-null.protected String name
protected String value
public String getId()
getId in class javax.servlet.jsp.tagext.TagSupportpublic void setId(String id)
setId in class javax.servlet.jsp.tagext.TagSupportpublic String getMultiple()
public void setMultiple(String multiple)
public String getName()
public void setName(String name)
public String getValue()
public void setValue(String value)
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspException - if a JSP exception has occurredprotected void handleMultipleHeaders()
throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspExceptionprotected void handleSingleHeader()
throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspExceptionpublic void release()
release in interface javax.servlet.jsp.tagext.Tagrelease in class javax.servlet.jsp.tagext.TagSupportCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.