Tabnine Logo
ViewHandler.getProtectedViewsUnmodifiable
Code IndexAdd Tabnine 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)

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

  • Running tasks concurrently on multiple threads
  • getSharedPreferences (Context)
  • getSystemService (Context)
  • putExtra (Intent)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • JButton (javax.swing)
  • JCheckBox (javax.swing)
  • Option (scala)
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now