Examples of HTTPRequestInfo


Examples of com.google.appengine.tools.cloudstorage.oauth.URLFetchUtils.HTTPRequestInfo

    req.setHeader(ZERO_CONTENT_LENGTH);
    HTTPResponse resp;
    try {
      resp = urlfetch.fetch(req);
    } catch (IOException e) {
      throw createIOException(new HTTPRequestInfo(req), e);
    }
    if (resp.getResponseCode() != 200) {
      throw HttpErrorHandler.error(new HTTPRequestInfo(req), resp);
    }
  }
View Full Code Here

Examples of com.google.appengine.tools.cloudstorage.oauth.URLFetchUtils.HTTPRequestInfo

    req.setHeader(ZERO_CONTENT_LENGTH);
    HTTPResponse resp;
    try {
      resp = urlfetch.fetch(req);
    } catch (IOException e) {
      throw createIOException(new HTTPRequestInfo(req), e);
    }
    if (resp.getResponseCode() != 200) {
      throw HttpErrorHandler.error(new HTTPRequestInfo(req), resp);
    }
    String nextMarker = null;
    List<ListItem> items = new ArrayList<>();
    try {
      XmlHandler xmlHandler = new XmlHandler(resp.getContent(), PATHS);
View Full Code Here

Examples of com.groupon.odo.plugin.HttpRequestInfo

        }

        if (!alreadyServed) {
            History history = new History();
            logOriginalRequestHistory("GET", request, history);
            requestInfo.originalRequestInfo = new HttpRequestInfo(request);
            try {
                GetMethod getMethodProxyRequest = new GetMethod(getProxyURL(
                        request, history, Constants.REQUEST_TYPE_GET));
                // set headers
                setProxyRequestHeaders(request, getMethodProxyRequest);
View Full Code Here

Examples of com.groupon.odo.plugin.HttpRequestInfo

                HttpUtilities.handleStandardPost(postMethodProxyRequest, request, history);
            }

            // use body filter to filter paths
            this.cullPathsByBodyFilter(history);
            requestInfo.originalRequestInfo = new HttpRequestInfo(request, history.getOriginalRequestPostData());
            // Execute the proxy request
            this.executeProxyRequest(postMethodProxyRequest, request, response,
                    history);
        } catch (Exception e) {
            // TODO log to history
View Full Code Here

Examples of com.groupon.odo.plugin.HttpRequestInfo

                HttpUtilities.handleStandardPost(putMethodProxyRequest, request, history);
            }

            // use body filter to filter paths
            this.cullPathsByBodyFilter(history);
            requestInfo.originalRequestInfo = new HttpRequestInfo(request, history.getOriginalRequestPostData());

            // Execute the proxy request
            this.executeProxyRequest(putMethodProxyRequest, request, response,
                    history);
        } catch (Exception e) {
View Full Code Here

Examples of com.groupon.odo.plugin.HttpRequestInfo

        requestInformation.set(new RequestInformation());
        RequestInformation requestInfo = requestInformation.get();

        History history = new History();
        logOriginalRequestHistory("DELETE", request, history);
        requestInfo.originalRequestInfo = new HttpRequestInfo(request);

        try {
            DeleteMethod getMethodProxyRequest = new DeleteMethod(getProxyURL(
                    request, history, Constants.REQUEST_TYPE_DELETE));
            // set headers
View Full Code Here

Examples of org.exolab.jms.net.http.HTTPRequestInfo

     * @return connection request info for creating a managed connection
     * @throws Exception for any error
     */
    protected ConnectionRequestInfo getManagedConnectionRequestInfo()
        throws Exception {
        return new HTTPRequestInfo(new URI("http://localhost:8080/openjms-tunnel/tunnel"));
    }
View Full Code Here

Examples of org.exolab.jms.net.http.HTTPRequestInfo

     * @return connection request info for creating a managed connection
     * @throws Exception for any error
     */
    protected ConnectionRequestInfo getManagedConnectionRequestInfo()
            throws Exception {
        HTTPRequestInfo result = new HTTPRequestInfo(
                new URI("https://localhost:8443/openjms-tunnel/tunnel"));

        result.setSSLProperties(getSSLProperties());
        return result;
    }
View Full Code Here

Examples of org.exolab.jms.net.http.HTTPRequestInfo

     * @return connection request info for creating a managed connection
     * @throws Exception for any error
     */
    protected ConnectionRequestInfo getManagedConnectionRequestInfo()
        throws Exception {
        return new HTTPRequestInfo(
                new URI("http://localhost:8080/openjms-tunnel/tunnel"));
    }
View Full Code Here

Examples of org.exolab.jms.net.http.HTTPRequestInfo

     * @return connection request info for creating a managed connection
     * @throws Exception for any error
     */
    protected ConnectionRequestInfo getManagedConnectionRequestInfo()
            throws Exception {
        HTTPRequestInfo info = new HTTPRequestInfo(
                new URI("https://localhost:8443/openjms-tunnel/tunnel"));
        SSLProperties properties =
                SSLUtil.getSSLProperties("test.keystore", "secret");
        info.setSSLProperties(properties);
        return info;
    }
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.