congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
MockHttpServletRequestBuilder.addToMap
Code IndexAdd Tabnine to your IDE (free)

How to use
addToMap
method
in
org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder

Best Java code snippets using org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder.addToMap (Showing top 9 results out of 315)

origin: spring-projects/spring-framework

/**
 * Set an "input" flash attribute.
 * @param name the flash attribute name
 * @param value the flash attribute value
 */
public MockHttpServletRequestBuilder flashAttr(String name, Object value) {
  addToMap(this.flashAttributes, name, value);
  return this;
}
origin: spring-projects/spring-framework

/**
 * Set a request attribute.
 * @param name the attribute name
 * @param value the attribute value
 */
public MockHttpServletRequestBuilder requestAttr(String name, Object value) {
  addToMap(this.requestAttributes, name, value);
  return this;
}
origin: spring-projects/spring-framework

/**
 * Set a session attribute.
 * @param name the session attribute name
 * @param value the session attribute value
 */
public MockHttpServletRequestBuilder sessionAttr(String name, Object value) {
  addToMap(this.sessionAttributes, name, value);
  return this;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-test

/**
 * Set a request attribute.
 * @param name the attribute name
 * @param value the attribute value
 */
public MockHttpServletRequestBuilder requestAttr(String name, Object value) {
  addToMap(this.requestAttributes, name, value);
  return this;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-test

/**
 * Set an "input" flash attribute.
 * @param name the flash attribute name
 * @param value the flash attribute value
 */
public MockHttpServletRequestBuilder flashAttr(String name, Object value) {
  addToMap(this.flashAttributes, name, value);
  return this;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-test

/**
 * Set a session attribute.
 * @param name the session attribute name
 * @param value the session attribute value
 */
public MockHttpServletRequestBuilder sessionAttr(String name, Object value) {
  addToMap(this.sessionAttributes, name, value);
  return this;
}
origin: apache/servicemix-bundles

/**
 * Set an "input" flash attribute.
 * @param name the flash attribute name
 * @param value the flash attribute value
 */
public MockHttpServletRequestBuilder flashAttr(String name, Object value) {
  addToMap(this.flashAttributes, name, value);
  return this;
}
origin: apache/servicemix-bundles

/**
 * Set a session attribute.
 * @param name the session attribute name
 * @param value the session attribute value
 */
public MockHttpServletRequestBuilder sessionAttr(String name, Object value) {
  addToMap(this.sessionAttributes, name, value);
  return this;
}
origin: apache/servicemix-bundles

/**
 * Set a request attribute.
 * @param name the attribute name
 * @param value the attribute value
 */
public MockHttpServletRequestBuilder requestAttr(String name, Object value) {
  addToMap(this.requestAttributes, name, value);
  return this;
}
org.springframework.test.web.servlet.requestMockHttpServletRequestBuilderaddToMap

Popular methods of MockHttpServletRequestBuilder

  • contentType
    Set the 'Content-Type' header of the request.
  • content
    Set the request body.
  • param
    Add a request parameter to the MockHttpServletRequest.If called more than once, new values get added
  • accept
    Set the 'Accept' header to the given media type(s).
  • header
    Add a header to the request. Values are always added.
  • with
    An extension point for further initialization of MockHttpServletRequestin ways not built directly in
  • requestAttr
    Set a request attribute.
  • buildRequest
    Build a MockHttpServletRequest.
  • contextPath
    Specify the portion of the requestURI that represents the context path. The context path, if specifi
  • principal
    Set the principal of the request.
  • flashAttr
    Set an "input" flash attribute.
  • headers
    Add all headers to the request. Values are always added.
  • flashAttr,
  • headers,
  • session,
  • sessionAttr,
  • cookie,
  • params,
  • servletPath,
  • <init>,
  • characterEncoding,
  • locale

Popular in Java

  • Updating database using SQL prepared statement
  • findViewById (Activity)
  • setContentView (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Join (org.hibernate.mapping)
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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