Search in sources :

Example 1 with RestTransportClient

use of io.servicecomb.transport.rest.client.RestTransportClient in project java-chassis by ServiceComb.

the class VertxRestTransport method send.

@Override
public void send(Invocation invocation, AsyncResponse asyncResp) throws Exception {
    URIEndpointObject endpoint = (URIEndpointObject) invocation.getEndpoint().getAddress();
    RestTransportClient client = RestTransportClientManager.INSTANCE.getRestTransportClient(endpoint.isSslEnabled());
    client.send(invocation, asyncResp);
}
Also used : RestTransportClient(io.servicecomb.transport.rest.client.RestTransportClient) URIEndpointObject(io.servicecomb.foundation.common.net.URIEndpointObject)

Example 2 with RestTransportClient

use of io.servicecomb.transport.rest.client.RestTransportClient in project java-chassis by ServiceComb.

the class ServletRestTransport method send.

@Override
public void send(Invocation invocation, AsyncResponse asyncResp) throws Exception {
    URIEndpointObject endpoint = (URIEndpointObject) invocation.getEndpoint().getAddress();
    RestTransportClient client = RestTransportClientManager.INSTANCE.getRestTransportClient(endpoint.isSslEnabled());
    client.send(invocation, asyncResp);
}
Also used : RestTransportClient(io.servicecomb.transport.rest.client.RestTransportClient) URIEndpointObject(io.servicecomb.foundation.common.net.URIEndpointObject)

Aggregations

URIEndpointObject (io.servicecomb.foundation.common.net.URIEndpointObject)2 RestTransportClient (io.servicecomb.transport.rest.client.RestTransportClient)2