PrintDocTag Class

DEPRECATED

com.bea.p13n.content.servlets.jsp.taglib
PrintDocTag Class

public class PrintDocTag

    extends com.bea.p13n.content.servlets.jsp.taglib.BaseTag

Tag extension to inline the bytes of a Document into the page context's output.


Hierarchy
Object
  TagSupport
    com.bea.p13n.content.servlets.jsp.taglib.BaseTag
      PrintDocTag
All Implemented Interfaces

IterationTag, Serializable, Tag

Field Summary

protected String
baseHref
The BASE HREF to use.
protected int
blockSize
The block size to read the data in.
protected com.bea.p13n.content.document.Document
doc
The document object to use.
protected String
encodeType
The encode type.
protected int
endIndex
The index at which we should stop reading.
protected int
startIndex
The index at which we should start reading.
   
Fields from  com.bea.p13n.content.servlets.jsp.taglib.com.bea.p13n.content.servlets.jsp.taglib.BaseTag
cacheId, cacheScope, cacheTimeout, failOnError, readOnly, useCache
 
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

PrintDocTag()

 

Method Summary

public int
doStartTag()
Called when the tag starts.
public String
encode(String in)
Encode a string with the current encode type.
public String
getBaseHref()
Get the value of PrintDocTag.baseHref.
public String
getBlockSize()
Get the value of PrintDocTag.blockSize as a String.
public String
getEncode()
Get the value of PrintDocTag.encodeType.
public String
getEnd()
Get the value of PrintDocTag.endIndex as a String.
public URL
getRequestBaseHref(HttpServletRequest request)
public URL
getServerBaseHref(HttpServletRequest request)
public String
getStart()
Get the value of PrintDocTag.startIndex as a String.
public void
print(String s)
public void
println(String s)
public void
release()
Reset the tag to a default state.
public void
setBaseHref(String v)
Set the value of PrintDocTag.baseHref.
public void
setBlockSize(String v)
Set the value of PrintDocTag.blockSize.
public void
setDoc(Content doc)
Set the document object to use.
public void
setDocument(Content doc)
Set the document object to use.
public void
setEncode(String v)
Set the value of PrintDocTag.encodeType.
public void
setEnd(String v)
Set the value of PrintDocTag.endIndex.
public void
setEnd(int endIndex)
Set the value of PrintDocTag.endIndex.
public void
setStart(String v)
Set the value of PrintDocTag.startIndex.
public void
setStart(int startIndex)
Set the value of PrintDocTag.startIndex.
 
Methods from  com.bea.p13n.content.servlets.jsp.taglib.com.bea.p13n.content.servlets.jsp.taglib.BaseTag
getCacheId, getCacheScope, getCacheTimeout, getFailOnError, getHttpSession, getReadOnly, getUseCache, getUserId, setCacheId, setCacheScope, setCacheTimeout, setCacheTimeout, setFailOnError, setFailOnError, setReadOnly, setReadOnly, setUseCache, setUseCache, toDictionary
 
Methods from  javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, 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

baseHref

protected String baseHref
The BASE HREF to use.

The content's identifier will be appended automatically to this.


blockSize

protected int blockSize
The block size to read the data in.


doc

protected com.bea.p13n.content.document.Document doc
The document object to use.


encodeType

protected String encodeType
The encode type.

This can be "html" for html-encoding, "url" for url-encoding, or anything else for no encoding.


endIndex

protected int endIndex
The index at which we should stop reading.


startIndex

protected int startIndex
The index at which we should start reading.

 

Constructor Detail

PrintDocTag

public PrintDocTag()
 

Method Detail

doStartTag() Method

public int doStartTag()
throws JspException
Called when the tag starts.

Overrides
TagSupport.doStartTag()

Exceptions

JspException

encode(String) Method

public String encode(String in)
Encode a string with the current encode type.

Related Topics

GetPropertyTag.encode(String, String)


getBaseHref() Method

public String getBaseHref()
Get the value of PrintDocTag.baseHref.


getBlockSize() Method

public String getBlockSize()
Get the value of PrintDocTag.blockSize as a String.


getEncode() Method

public String getEncode()
Get the value of PrintDocTag.encodeType.


getEnd() Method

public String getEnd()
Get the value of PrintDocTag.endIndex as a String.


getRequestBaseHref(HttpServletRequest) Method

public URL getRequestBaseHref(HttpServletRequest request)
throws MalformedURLException

Exceptions

MalformedURLException

getServerBaseHref(HttpServletRequest) Method

public URL getServerBaseHref(HttpServletRequest request)
throws MalformedURLException

Exceptions

MalformedURLException

getStart() Method

public String getStart()
Get the value of PrintDocTag.startIndex as a String.


print(String) Method

public void print(String s)

println(String) Method

public void println(String s)

release() Method

public void release()
Reset the tag to a default state.

Overrides
BaseTag.release()

setBaseHref(String) Method

public void setBaseHref(String v)
Set the value of PrintDocTag.baseHref.


setBlockSize(String) Method

public void setBlockSize(String v)
Set the value of PrintDocTag.blockSize.


setDoc(Content) Method

public void setDoc(Content doc)
Set the document object to use.


setDocument(Content) Method

public void setDocument(Content doc)
Set the document object to use.


setEncode(String) Method

public void setEncode(String v)
Set the value of PrintDocTag.encodeType.


setEnd(String) Method

public void setEnd(String v)
Set the value of PrintDocTag.endIndex.


setEnd(int) Method

public void setEnd(int endIndex)
Set the value of PrintDocTag.endIndex.


setStart(String) Method

public void setStart(String v)
Set the value of PrintDocTag.startIndex.


setStart(int) Method

public void setStart(int startIndex)
Set the value of PrintDocTag.startIndex.