Modifier and Type | Class and Description |
---|---|
static interface |
UniqueWriterController.UniqueWriterControllerListener
The interface that listeners must implement.
|
Modifier and Type | Method and Description |
---|---|
void |
addTracedKey(String key)
Add a key to
tracedItems . |
String |
getHeadEndMarkers()
Returns the head end markers (or
null if there's no marker to be inserted). |
String |
getHeadStartMarkers()
Returns the head start markers (or
null if there's no marker to be inserted). |
static UniqueWriterController |
getInstance(HttpServletRequest request)
Gets the instance that is controlling the writes in the given request.
|
String |
getStringToLocallyWrite(String key,
String text)
Returns the string to be written locally (inline).
|
Set<String> |
getUniqueKeys()
Returns the unique keys used.
|
List<String> |
getUntracedKeys()
A list containing all items from
getUniqueKeys() without the items present in tracedItems . |
String |
processHtml(String html,
boolean isServerSide)
Deprecated.
since 8.2.0 replaced by
processHtml(String, boolean, IPageWebResourceRenderRequest) . |
String |
processHtml(String html,
boolean isServerSide,
IPageWebResourceRenderRequest renderRequest)
Process the HTML replacing the found markers for their text fragment accordingly.
|
String |
processHtml(String html,
Set<String> usedKeys,
boolean isServerSide,
IPageWebResourceRenderRequest renderRequest)
Process the HTML replacing the found markers for their text fragment accordingly.
|
void |
removeListener()
Removes this unique writer controller listener.
|
void |
setListener(UniqueWriterController.UniqueWriterControllerListener listener)
Sets this unique writer controller listener.
|
void |
writeHead(String key,
String text,
PortalPrintWriter.WritePosition itemPosition)
Inserts the item to be written in head.
|
public static UniqueWriterController getInstance(HttpServletRequest request)
request
- the request being controlled.controller
for the request.public String getStringToLocallyWrite(String key, String text)
key
- the unique key.text
- the text fragment.public void writeHead(String key, String text, PortalPrintWriter.WritePosition itemPosition)
key
- the unique key.text
- the text fragment.itemPosition
- the item position.IllegalArgumentException
- if the itemPosition
parameter is null
or is not any of PortalPrintWriter.WritePosition.HEAD_START
or PortalPrintWriter.WritePosition.HEAD_END
.@Deprecated public String processHtml(String html, boolean isServerSide) throws PortalException
processHtml(String, boolean, IPageWebResourceRenderRequest)
.html
- the HTML to be processed.renderRequest
- PortalException
public String processHtml(String html, boolean isServerSide, IPageWebResourceRenderRequest renderRequest) throws PortalException
html
- the HTML to be processed.renderRequest
- PortalException
public String processHtml(String html, Set<String> usedKeys, boolean isServerSide, IPageWebResourceRenderRequest renderRequest) throws PortalException
html
- the HTML to be processed.usedKeys
- the used keys that will not be processed.PortalException
public String getHeadStartMarkers()
null
if there's no marker to be inserted).null
if there's no marker to be inserted).public String getHeadEndMarkers()
null
if there's no marker to be inserted).null
if there's no marker to be inserted).public Set<String> getUniqueKeys()
public void setListener(UniqueWriterController.UniqueWriterControllerListener listener)
listener
- the listener.public void removeListener()
public List<String> getUntracedKeys()
getUniqueKeys()
without the items present in tracedItems
.public void addTracedKey(String key)
tracedItems
. The list is used by getUntracedKeys()
to return
getUniqueKeys()
without the keys present in tracedItems
.key
- The key to be added to the list.LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.