Tabnine Logo
RestData$Header.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
smartrics.rest.client.RestData$Header
constructor

Best Java code snippets using smartrics.rest.client.RestData$Header.<init> (Showing top 2 results out of 315)

origin: smartrics/RestFixture

@Override
public Object parse(String s) throws Exception {
  // parses a cell content as a map of headers.
  // syntax is name:value\n*
  List<Header> expected = new ArrayList<Header>();
  if (!"".equals(s.trim())) {
    String expStr = Tools.fromHtml(s.trim());
    String[] nvpArray = expStr.split("\n");
    for (String nvp : nvpArray) {
      try {
        String[] nvpEl = nvp.split(":", 2);
        expected.add(new Header(nvpEl[0].trim(), nvpEl[1].trim()));
      } catch (RuntimeException e) {
        throw new IllegalArgumentException("Each entry in the must be separated by \\n and each entry must be expressed as a name:value");
      }
    }
  }
  return expected;
}
origin: smartrics.restfixture/smartrics-RestClient

/**
 * Adds an HTTP header to the current list.
 *
 * @param name
 *            the header name
 * @param value
 *            the header value
 * @return this RestData
 */
public RestData addHeader(String name, String value) {
  this.headers.add(new Header(name, value));
  return this;
}
smartrics.rest.clientRestData$Header<init>

Popular methods of RestData$Header

  • getName
  • getValue

Popular in Java

  • Making http post requests using okhttp
  • getApplicationContext (Context)
  • requestLocationUpdates (LocationManager)
  • setRequestProperty (URLConnection)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Reference (javax.naming)
  • JList (javax.swing)
  • Table (org.hibernate.mapping)
    A relational table
  • Top 17 Plugins for Android Studio
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