|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlumis.portal.servlet.UniqueWriterController
public class UniqueWriterController
Class responsible for controlling unique writes based on keys.
Guarantees uniqueness during a request
.
Method Summary | |
---|---|
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. |
String |
processHtml(String html)
Process the HTML replacing the found markers for their text fragment accordingly. |
String |
processHtml(String html,
Set<String> usedKeys)
Process the HTML replacing the found markers for their text fragment accordingly. |
void |
writeHead(String key,
String text,
PortalPrintWriter.WritePosition itemPosition)
Inserts the item to be written in head. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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
.public String processHtml(String html)
html
- the HTML to be processed.
public String processHtml(String html, Set<String> usedKeys)
html
- the HTML to be processed.usedKeys
- the used keys that will not be processed.
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |