Search in sources :

Example 1 with Destination

use of com.eclipsesource.restfuse.Destination in project restfuse by eclipsesource.

the class DynamicPathTest method getDestination.

private Destination getDestination() {
    Destination destination = new Destination(this, "http://search.maven.org/remotecontent?filepath=" + "com/restfuse/com.eclipsesource.restfuse/{version}/");
    RequestContext context = destination.getRequestContext();
    context.addPathSegment("file", "com.eclipsesource.restfuse-1.1.1").addPathSegment("version", "1.1.1");
    return destination;
}
Also used : Destination(com.eclipsesource.restfuse.Destination) RequestContext(com.eclipsesource.restfuse.RequestContext)

Example 2 with Destination

use of com.eclipsesource.restfuse.Destination in project restfuse by eclipsesource.

the class RequestContextConfiguration_Test method getDestination.

private Destination getDestination() {
    Destination destination = new Destination(this, "http://localhost:10045/test");
    destination.getRequestContext().addHeader("test", "value");
    return destination;
}
Also used : Destination(com.eclipsesource.restfuse.Destination)

Example 3 with Destination

use of com.eclipsesource.restfuse.Destination in project restfuse by eclipsesource.

the class DynamicHeaderTest method getDestination.

private Destination getDestination() {
    Destination destination = new Destination(this, "http://restfuse.com");
    destination.getRequestContext().addHeader("Cookie", "name:value");
    return destination;
}
Also used : Destination(com.eclipsesource.restfuse.Destination)

Aggregations

Destination (com.eclipsesource.restfuse.Destination)3 RequestContext (com.eclipsesource.restfuse.RequestContext)1