|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.apache.taglibs.request.HeadersTag
public class HeadersTag
JSP Tag headers, used to get HttpServletRequest header information using the standard JSP <jsp:getProperty> tag.
The script variable of name id is availble only within the body of the headers tag.
Loops through all the headers received by the HttpServletRequest.
If the optional attribute name is present only the header of that name is retreived.
JSP Tag Lib Descriptor
<name>headers</name> <tagclass>org.apache.taglibs.request.HeadersTag</tagclass> <teiclass>org.apache.taglibs.request.HeadersTEI</teiclass> <bodycontent>JSP</bodycontent> <info>Loop through all headers, or get the properties of a single header.</info> <attribute> <name>id</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>name</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute>
Field Summary |
---|
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
---|
bodyContent |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
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 | |
---|---|
HeadersTag()
|
Method Summary | |
---|---|
int |
doAfterBody()
Method called at end of each headers tag body. |
int |
doEndTag()
Method called at end of Tag |
int |
doStartTag()
Gets the headers that came with the request or header with name. |
java.lang.String |
getDateHeader()
Returns the value of a date header as the number of ms since the epoch. |
java.lang.String |
getHeader()
Returns the value of the header. |
java.lang.String |
getIntHeader()
Returns the value of a header as an integer. |
java.lang.String |
getName()
Returns the name of the header. |
void |
setName(java.lang.String str)
Set the optional tag attribute name. |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
---|
doInitBody, getBodyContent, getPreviousOut, release, setBodyContent |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
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 |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
---|
getParent, setPageContext, setParent |
Constructor Detail |
---|
public HeadersTag()
Method Detail |
---|
public final int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
public final int doAfterBody() throws javax.servlet.jsp.JspException
doAfterBody
in interface javax.servlet.jsp.tagext.IterationTag
doAfterBody
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
public final int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
public final void setName(java.lang.String str)
String
- name of HTTP headerpublic final java.lang.String getName()
<jsp:getProperty name="id" property="name"/>
public final java.lang.String getHeader()
<jsp:getProperty name="id" property="header"/>
public final java.lang.String getDateHeader()
<jsp:getProperty name="id" property="dateHeader"/>
public final java.lang.String getIntHeader()
<jsp:getProperty name="id" property="intHeader"/>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |