Codota Logo
ViewHandler.getProtectedViewsUnmodifiable
Code IndexAdd Codota to your IDE (free)

How to use
getProtectedViewsUnmodifiable
method
in
javax.faces.application.ViewHandler

Best Java code snippets using javax.faces.application.ViewHandler.getProtectedViewsUnmodifiable (Showing top 20 results out of 315)

  • Common ways to obtain ViewHandler
private void myMethod () {
ViewHandler v =
  • Codota IconFacesContext facesContext;facesContext.getApplication().getViewHandler()
  • Codota IconApplication application;application.getViewHandler()
  • Codota IconApplicationWrapper applicationWrapper;applicationWrapper.getWrapped().getViewHandler()
  • Smart code suggestions by Codota
}
origin: frenchc/jetm

@Override
public Set<String> getProtectedViewsUnmodifiable() {
 return delegate.getProtectedViewsUnmodifiable();
}
origin: org.apache.myfaces.core/myfaces-api

@Override
public Set<String> getProtectedViewsUnmodifiable()
{
  return getWrapped().getProtectedViewsUnmodifiable();
}
origin: javax/javaee-web-api

/**
 *
 * <p>The default behavior of this method is to
 * call {@link ViewHandler#getProtectedViewsUnmodifiable}
 * on the wrapped {@link ViewHandler} object.</p>
 *
 * @see ViewHandler#getProtectedViewsUnmodifiable
 * @since 2.2
 */
@Override
public Set<String> getProtectedViewsUnmodifiable() {
  return getWrapped().getProtectedViewsUnmodifiable();
}
origin: jboss/jboss-javaee-specs

/**
 *
 * <p>The default behavior of this method is to
 * call {@link ViewHandler#getProtectedViewsUnmodifiable}
 * on the wrapped {@link ViewHandler} object.</p>
 *
 * @see ViewHandler#getProtectedViewsUnmodifiable
 * @since 2.2
 */
@Override
public Set<String> getProtectedViewsUnmodifiable() {
  return getWrapped().getProtectedViewsUnmodifiable();
}
origin: com.sun.faces/jsf-api

/**
 *
 * <p>The default behavior of this method is to
 * call {@link ViewHandler#getProtectedViewsUnmodifiable}
 * on the wrapped {@link ViewHandler} object.</p>
 *
 * @see ViewHandler#getProtectedViewsUnmodifiable
 * @since 2.2
 */
@Override
public Set<String> getProtectedViewsUnmodifiable() {
  return getWrapped().getProtectedViewsUnmodifiable();
}
origin: javax.faces/javax.faces-api

/**
 *
 * <p>The default behavior of this method is to
 * call {@link ViewHandler#getProtectedViewsUnmodifiable}
 * on the wrapped {@link ViewHandler} object.</p>
 *
 * @see ViewHandler#getProtectedViewsUnmodifiable
 * @since 2.2
 */
@Override
public Set<String> getProtectedViewsUnmodifiable() {
  return getWrapped().getProtectedViewsUnmodifiable();
}
origin: org.glassfish/javax.faces

/**
 *
 * <p>
 * The default behavior of this method is to call
 * {@link ViewHandler#getProtectedViewsUnmodifiable} on the wrapped {@link ViewHandler} object.
 * </p>
 *
 * @see ViewHandler#getProtectedViewsUnmodifiable
 * @since 2.2
 */
@Override
public Set<String> getProtectedViewsUnmodifiable() {
  return getWrapped().getProtectedViewsUnmodifiable();
}
origin: org.glassfish/jakarta.faces

/**
 *
 * <p>
 * The default behavior of this method is to call
 * {@link ViewHandler#getProtectedViewsUnmodifiable} on the wrapped {@link ViewHandler} object.
 * </p>
 *
 * @see ViewHandler#getProtectedViewsUnmodifiable
 * @since 2.2
 */
@Override
public Set<String> getProtectedViewsUnmodifiable() {
  return getWrapped().getProtectedViewsUnmodifiable();
}
origin: eclipse-ee4j/mojarra

/**
 *
 * <p>
 * The default behavior of this method is to call
 * {@link ViewHandler#getProtectedViewsUnmodifiable} on the wrapped {@link ViewHandler} object.
 * </p>
 *
 * @see ViewHandler#getProtectedViewsUnmodifiable
 * @since 2.2
 */
@Override
public Set<String> getProtectedViewsUnmodifiable() {
  return getWrapped().getProtectedViewsUnmodifiable();
}
origin: eclipse-ee4j/mojarra

/**
 *
 * <p>
 * The default behavior of this method is to call
 * {@link ViewHandler#getProtectedViewsUnmodifiable} on the wrapped {@link ViewHandler} object.
 * </p>
 *
 * @see ViewHandler#getProtectedViewsUnmodifiable
 * @since 2.2
 */
@Override
public Set<String> getProtectedViewsUnmodifiable() {
  return getWrapped().getProtectedViewsUnmodifiable();
}
origin: org.apache.myfaces.shared/myfaces-shared-core

  public static boolean isViewProtected(FacesContext context, String viewId)
  {
    Set<String> protectedViews = context.getApplication().getViewHandler().getProtectedViewsUnmodifiable();
    if (!protectedViews.isEmpty())
    {
      boolean matchFound = false;
      for (String urlPattern : protectedViews)
      {
        if (ViewProtectionUtils.matchPattern(viewId, urlPattern))
        {
          matchFound = true;
          break;
        }
      }
      return matchFound;
    }
    else
    {
      return false;
    }
  }
}
origin: org.apache.myfaces.core/myfaces-impl

  public static boolean isViewProtected(FacesContext context, String viewId)
  {
    Set<String> protectedViews = context.getApplication().getViewHandler().getProtectedViewsUnmodifiable();
    if (!protectedViews.isEmpty())
    {
      boolean matchFound = false;
      for (String urlPattern : protectedViews)
      {
        if (ViewProtectionUtils.matchPattern(viewId, urlPattern))
        {
          matchFound = true;
          break;
        }
      }
      return matchFound;
    }
    else
    {
      return false;
    }
  }
}
origin: com.sun.faces/jsf-impl

/**
 * Notfication that a session has been created.
 * @param event the notification event
 */
public void sessionCreated(HttpSessionEvent event) {
  ApplicationAssociate associate = getAssociate();
  // PENDING this should only create a new list if in dev mode
   if (associate != null && associate.isDevModeEnabled()) {
    if (activeSessions == null) {
      activeSessions = new ArrayList<HttpSession>();
    }
    activeSessions.add(event.getSession());
  }
  boolean doCreateToken = true;
  
  // Try to avoid creating the token unless we actually have protected views
  if (null != associate) {
    Application application = associate.getApplication();
    ViewHandler viewHandler = application.getViewHandler();
    doCreateToken = !viewHandler.getProtectedViewsUnmodifiable().isEmpty();
  }
  if (doCreateToken) {
    StateHelper.createAndStoreCryptographicallyStrongTokenInSession(event.getSession());
  }
}
origin: com.sun.faces/jsf-impl

Set<String> urlPatterns = viewHandler.getProtectedViewsUnmodifiable();
origin: org.glassfish/javax.faces

Set<String> urlPatterns = viewHandler.getProtectedViewsUnmodifiable();
origin: org.glassfish/jakarta.faces

Set<String> urlPatterns = viewHandler.getProtectedViewsUnmodifiable();
origin: eclipse-ee4j/mojarra

Set<String> urlPatterns = viewHandler.getProtectedViewsUnmodifiable();
origin: org.glassfish/jakarta.faces

/**
 * Notfication that a session has been created.
 * 
 * @param event the notification event
 */
public void sessionCreated(HttpSessionEvent event) {
  ApplicationAssociate associate = getAssociate();
  // PENDING this should only create a new list if in dev mode
  if (associate != null && associate.isDevModeEnabled()) {
    activeSessions.add(event.getSession());
  }
  boolean doCreateToken = true;
  // Try to avoid creating the token unless we actually have protected views
  if (null != associate) {
    Application application = associate.getApplication();
    ViewHandler viewHandler = application.getViewHandler();
    doCreateToken = !viewHandler.getProtectedViewsUnmodifiable().isEmpty();
  }
  if (doCreateToken) {
    StateHelper.createAndStoreCryptographicallyStrongTokenInSession(event.getSession());
  }
}
origin: eclipse-ee4j/mojarra

/**
 * Notfication that a session has been created.
 * 
 * @param event the notification event
 */
public void sessionCreated(HttpSessionEvent event) {
  ApplicationAssociate associate = getAssociate();
  // PENDING this should only create a new list if in dev mode
  if (associate != null && associate.isDevModeEnabled()) {
    activeSessions.add(event.getSession());
  }
  boolean doCreateToken = true;
  // Try to avoid creating the token unless we actually have protected views
  if (null != associate) {
    Application application = associate.getApplication();
    ViewHandler viewHandler = application.getViewHandler();
    doCreateToken = !viewHandler.getProtectedViewsUnmodifiable().isEmpty();
  }
  if (doCreateToken) {
    StateHelper.createAndStoreCryptographicallyStrongTokenInSession(event.getSession());
  }
}
origin: org.glassfish/javax.faces

/**
 * Notfication that a session has been created.
 * 
 * @param event the notification event
 */
public void sessionCreated(HttpSessionEvent event) {
  ApplicationAssociate associate = getAssociate();
  // PENDING this should only create a new list if in dev mode
  if (associate != null && associate.isDevModeEnabled()) {
    activeSessions.add(event.getSession());
  }
  boolean doCreateToken = true;
  // Try to avoid creating the token unless we actually have protected views
  if (null != associate) {
    Application application = associate.getApplication();
    ViewHandler viewHandler = application.getViewHandler();
    doCreateToken = !viewHandler.getProtectedViewsUnmodifiable().isEmpty();
  }
  if (doCreateToken) {
    StateHelper.createAndStoreCryptographicallyStrongTokenInSession(event.getSession());
  }
}
javax.faces.applicationViewHandlergetProtectedViewsUnmodifiable

Javadoc

Return an unmodifiable Set of the protected views currently known to this ViewHandler instance. Compliant implementations must return a Set that is the concatenation of the contents of all the <url-pattern> elements within all the <protected-views> in all of the application configuration resources in the current application. The runtime must support calling this method at any time after application startup. The default implementation returns an unmodifiable empty Set.

Popular methods of ViewHandler

  • getActionURL
    If the value returned from this method is used as the file argument to the four-argument constructor
  • createView
    Create and return a new UIViewRoot instance initialized with information from the argument FacesCont
  • getResourceURL
    If the value returned from this method is used as the file argument to the four-argument constructor
  • restoreView
    Perform whatever actions are required to restore the view associated with the specified FacesContext
  • calculateRenderKitId
    Return an appropriate renderKitId for this and subsequent requests from the current client. It is an
  • calculateLocale
    Returns an appropriate Locale to use for this and subsequent requests for the current client.
  • writeState
    Take any appropriate action to either immediately write out the current state information (by callin
  • renderView
    Perform whatever actions are required to render the response view to the response object associated
  • initView
    Initialize the view for the request processing lifecycle. This method must be called at the beginni
  • getBookmarkableURL
    Return a JSF action URL derived from the viewId argument that is suitable to be used as the target
  • getViewDeclarationLanguage
    Return the ViewDeclarationLanguage instance used for this ViewHandler instance. The default impleme
  • getRedirectURL
    Return a JSF action URL derived from the viewId argument that is suitable to be used by the Navigat
  • getViewDeclarationLanguage,
  • getRedirectURL,
  • calculateCharacterEncoding,
  • deriveViewId,
  • deriveLogicalViewId,
  • addProtectedView,
  • getViews,
  • getWebsocketURL,
  • removeProtectedView

Popular in Java

  • Reading from database using SQL prepared statement
  • getExternalFilesDir (Context)
  • requestLocationUpdates (LocationManager)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • Kernel (java.awt.image)
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • JLabel (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Runner (org.openjdk.jmh.runner)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now