|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.DefaultWindowHandler
@ApplicationScoped public class DefaultWindowHandler
Field Summary | |
---|---|
protected boolean |
useWindowAwareUrlEncoding
|
Constructor Summary | |
---|---|
protected |
DefaultWindowHandler()
|
protected |
DefaultWindowHandler(WindowContextConfig config)
|
Method Summary | |
---|---|
protected String |
addWindowIdIfNecessary(String url,
String windowId)
|
String |
createWindowId()
Creates a new and unique window-id for the current user-session |
String |
encodeURL(String url)
Allows to intercept the URL encoding |
protected String |
getCurrentWindowId()
|
String |
restoreWindowId(javax.faces.context.ExternalContext externalContext)
Allows to restore the window-id depending on the window-strategy supported by the implementation |
void |
sendRedirect(javax.faces.context.ExternalContext externalContext,
String url,
boolean addRequestParameter)
Allows to intercept redirects |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean useWindowAwareUrlEncoding
Constructor Detail |
---|
protected DefaultWindowHandler()
@Inject protected DefaultWindowHandler(WindowContextConfig config)
Method Detail |
---|
public String encodeURL(String url)
encodeURL
in interface WindowHandler
url
- URL which has to be encoded
public void sendRedirect(javax.faces.context.ExternalContext externalContext, String url, boolean addRequestParameter) throws IOException
sendRedirect
in interface WindowHandler
externalContext
- current external-contexturl
- current URLaddRequestParameter
- flag which indicates if the request-parameters should be added to the URL
IOException
- exception which might be thrown by the external-context during the redirectpublic String createWindowId()
createWindowId
in interface WindowHandler
public String restoreWindowId(javax.faces.context.ExternalContext externalContext)
restoreWindowId
in interface WindowHandler
externalContext
- current external-context
protected String getCurrentWindowId()
protected String addWindowIdIfNecessary(String url, String windowId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |