| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jaffa.presentation.portlet.HistoryNav
This is a helper class for marshalling the HistoryNavList into XML and vice versa.
| Field Summary | |
| static String | HISTORY_NAV_PARAMETERConstant to denote the 'historyNav' parameter. | 
| Constructor Summary | |
| HistoryNav() | |
| Method Summary | |
| static void | addFormKeyToHistoryNav(HttpServletRequest request,
                                             FormKey fk)This will add the input FormKey to the historyNav. | 
| static List | decode(String historyNavXml)This will unmarshal the input XML into a List of FormKey objects. | 
| static String | encode(List historyNavList)This will marhsal the input List into XML. | 
| static List | initializeHistoryNav(HttpServletRequest request)This will initialze a List with the 'jaffa_home' link and set the 'historyNav' attribute on the input request stream with the new List. | 
| static List | initializeHistoryNav(HttpServletRequest request,
                                         String finalUrl)This will initialze a List with the 'jaffa_home' link and set the 'historyNav' attribute on the input request stream with the new List. | 
| static List | obtainHistoryNav(HttpServletRequest request)This will search the request stream for the attribute 'historyNav'. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
public static final String HISTORY_NAV_PARAMETER
| Constructor Detail | 
public HistoryNav()
| Method Detail | 
public static String encode(List historyNavList)
historyNavList - The List of FormKey objects.
public static List decode(String historyNavXml)
historyNavXml - The XML representation of the historyNavList.
public static List initializeHistoryNav(HttpServletRequest request)
request - The request stream
public static List initializeHistoryNav(HttpServletRequest request,
                                        String finalUrl)
                                 throws UnsupportedEncodingException
request - The request streamfinalUrl - The final Url encoded in UTF-8 format.
UnsupportedEncodingException - if the UTF-8 format is not supported. should never happen.public static List obtainHistoryNav(HttpServletRequest request)
request - The request stream.
public static void addFormKeyToHistoryNav(HttpServletRequest request,
                                          FormKey fk)
request - The request stream.fk - The FormKey to add.| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||