Package org.wiztools.restclient.bean

Examples of org.wiztools.restclient.bean.RequestBean.addHeader()


    private RequestBean getDefaultRequestBean() throws MalformedURLException{
        RequestBean expResult = new RequestBean();
        expResult.setUrl(new URL("http://localhost:10101/"));
        expResult.setMethod(HTTPMethod.POST);
        expResult.addHeader("key1", "value1");
        ContentType contentType = new ContentTypeBean("text/plain", Charsets.UTF_8);
        expResult.setBody(new ReqEntityStringBean("Body Text", contentType));
       
        BasicAuthBean auth = new BasicAuthBean();
        auth.setPreemptive(true);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.