Example usage for org.apache.http.client.fluent Request Options

List of usage examples for org.apache.http.client.fluent Request Options

Introduction

In this page you can find the example usage for org.apache.http.client.fluent Request Options.

Prototype

public static Request Options(final String uri) 

Source Link

Usage

From source file:org.apache.james.jmap.methods.integration.cucumber.DownloadStepdefs.java

@When("^\"([^\"]*)\" checks for the availability of the attachment endpoint$")
public void optionDownload(String username) throws Throwable {
    AccessToken accessToken = userStepdefs.tokenByUser.get(username);
    URI target = mainStepdefs.baseUri().setPath("/download/" + ONE_ATTACHMENT_EML_ATTACHEMENT_BLOB_ID).build();
    Request request = Request.Options(target);
    if (accessToken != null) {
        request.addHeader("Authorization", accessToken.serialize());
    }//  www  . j ava2 s  . c  o m
    response = request.execute().returnResponse();
}

From source file:com.adobe.acs.commons.http.impl.HttpClientFactoryImpl.java

@Override
public Request options(String partialUrl) {
    String url = baseUrl + partialUrl;
    return Request.Options(url);
}