Examples of HttpProtocolHandler


Examples of com.lgx8.common.payment.util.httpClient.HttpProtocolHandler

    public static String sendPostInfo(Map<String, String> sParaTemp, String gateway)
                                                                                    throws Exception {
        //待请求参数数组
        Map<String, String> sPara = buildRequestPara(sParaTemp);

        HttpProtocolHandler httpProtocolHandler = HttpProtocolHandler.getInstance();

        HttpRequest request = new HttpRequest(HttpResultType.BYTES);
        //设置编码集
        request.setCharset(AlipayConfig.input_charset);

        request.setParameters(generatNameValuePair(sPara));
        request.setUrl(gateway+"_input_charset="+AlipayConfig.input_charset);

        HttpResponse response = httpProtocolHandler.execute(request);
        if (response == null) {
            return null;
        }
       
        String strResult = response.getStringResult();
View Full Code Here

Examples of com.lgx8.common.payment.util.httpClient.HttpProtocolHandler

    public static String sendPostInfo(Map<String, String> sParaTemp, String gateway)
                                                                                    throws Exception {
        //待请求参数数组
        Map<String, String> sPara = buildRequestPara(sParaTemp);

        HttpProtocolHandler httpProtocolHandler = HttpProtocolHandler.getInstance();

        HttpRequest request = new HttpRequest(HttpResultType.BYTES);
        //设置编码集
        request.setCharset(AlipayMerchantConfig.input_charset);

        request.setParameters(generatNameValuePair(sPara));
        request.setUrl(gateway+"_input_charset="+AlipayMerchantConfig.input_charset);

        HttpResponse response = httpProtocolHandler.execute(request);
        if (response == null) {
            return null;
        }
       
        String strResult = response.getStringResult();
View Full Code Here

Examples of com.volantis.shared.net.impl.url.http.HttpProtocolHandler

        this.proxyManager = ProxyFactory.getDefaultInstance()
                .getSystemProxyManager();

        Map map = new TreeMap(String.CASE_INSENSITIVE_ORDER);

        final HttpProtocolHandler httpHandler =
            new HttpProtocolHandler(this, config.getCache());
        map.put("http", httpHandler);
        map.put("https", httpHandler);

        // configure a file handler.
        FileProtocolHandler fileProtocolHandler = new FileProtocolHandler();
View Full Code Here

Examples of org.apache.cactus.internal.client.connector.http.HttpProtocolHandler

    /**
     * @see AbstractCactusTestCase#createProtocolHandler()
     */
    protected ProtocolHandler createProtocolHandler()
    {
        return new HttpProtocolHandler(new DefaultFilterConfiguration());
    }
View Full Code Here

Examples of org.apache.cactus.internal.client.connector.http.HttpProtocolHandler

    /**
     * @see ServletTestCase#createProtocolHandler()
     */
    protected ProtocolHandler createProtocolHandler()
    {
        return new HttpProtocolHandler(new DefaultJspConfiguration());
    }
View Full Code Here

Examples of org.apache.cactus.internal.client.connector.http.HttpProtocolHandler

    /**
     * @see AbstractCactusTestCase#createProtocolHandler()
     */
    protected ProtocolHandler createProtocolHandler()
    {
        return new HttpProtocolHandler(new DefaultServletConfiguration());
    }
View Full Code Here

Examples of org.apache.cactus.internal.client.connector.http.HttpProtocolHandler

    /**
     * @see AbstractCactusTestCase#createProtocolHandler()
     */
    protected ProtocolHandler createProtocolHandler()
    {
        return new HttpProtocolHandler(new FilterConfiguration());
    }
View Full Code Here

Examples of org.apache.cactus.internal.client.connector.http.HttpProtocolHandler

     * @see AbstractTestCase#runTest()
     */
    protected void runTest() throws Throwable
    {
        ClientTestCaseCaller delegator = new ClientTestCaseCaller(
            this, this, new HttpProtocolHandler(new ServletConfiguration()));

        try
        {
            // Call the begin method
            WebRequest request = new WebRequestImpl(new ServletConfiguration());
View Full Code Here

Examples of org.apache.cactus.internal.client.connector.http.HttpProtocolHandler

    /**
     * @see AbstractCactusTestCase#createProtocolHandler()
     */
    protected ProtocolHandler createProtocolHandler()
    {
        return new HttpProtocolHandler(new ServletConfiguration());
    }
View Full Code Here

Examples of org.apache.cactus.internal.client.connector.http.HttpProtocolHandler

    /**
     * @see ServletTestCase#createProtocolHandler()
     */
    protected ProtocolHandler createProtocolHandler()
    {
        return new HttpProtocolHandler(new JspConfiguration());
    }
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.