Tabnine Logo
MockPageContext.getAttributeNames
Code IndexAdd Tabnine to your IDE (free)

How to use
getAttributeNames
method
in
org.springframework.mock.web.MockPageContext

Best Java code snippets using org.springframework.mock.web.MockPageContext.getAttributeNames (Showing top 3 results out of 315)

origin: spring-projects/spring-framework

@Override
public Enumeration<String> getAttributeNamesInScope(int scope) {
  switch (scope) {
    case PAGE_SCOPE:
      return getAttributeNames();
    case REQUEST_SCOPE:
      return this.request.getAttributeNames();
    case SESSION_SCOPE:
      HttpSession session = this.request.getSession(false);
      return (session != null ? session.getAttributeNames() : Collections.emptyEnumeration());
    case APPLICATION_SCOPE:
      return this.servletContext.getAttributeNames();
    default:
      throw new IllegalArgumentException("Invalid scope: " + scope);
  }
}
origin: apache/servicemix-bundles

@Override
public Enumeration<String> getAttributeNamesInScope(int scope) {
  switch (scope) {
    case PAGE_SCOPE:
      return getAttributeNames();
    case REQUEST_SCOPE:
      return this.request.getAttributeNames();
    case SESSION_SCOPE:
      HttpSession session = this.request.getSession(false);
      return (session != null ? session.getAttributeNames() : null);
    case APPLICATION_SCOPE:
      return this.servletContext.getAttributeNames();
    default:
      throw new IllegalArgumentException("Invalid scope: " + scope);
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-test

@Override
public Enumeration<String> getAttributeNamesInScope(int scope) {
  switch (scope) {
    case PAGE_SCOPE:
      return getAttributeNames();
    case REQUEST_SCOPE:
      return this.request.getAttributeNames();
    case SESSION_SCOPE:
      HttpSession session = this.request.getSession(false);
      return (session != null ? session.getAttributeNames() : Collections.emptyEnumeration());
    case APPLICATION_SCOPE:
      return this.servletContext.getAttributeNames();
    default:
      throw new IllegalArgumentException("Invalid scope: " + scope);
  }
}
org.springframework.mock.webMockPageContextgetAttributeNames

Popular methods of MockPageContext

  • <init>
    Create new MockServletConfig.
  • getAttribute
  • removeAttribute
  • setAttribute

Popular in Java

  • Reactive rest calls using spring rest template
  • onCreateOptionsMenu (Activity)
  • putExtra (Intent)
  • getContentResolver (Context)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • JPanel (javax.swing)
  • 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