com.sun.jersey.api.client.AsyncWebResource Java Examples
The following examples show how to use
com.sun.jersey.api.client.AsyncWebResource.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WebServicesClient.java From Bats with Apache License 2.0 | 5 votes |
public <T> Future<T> process(final AsyncWebResource wr, final ITypeListener<T> listener, final WebServicesAsyncHandler<T> handler) throws IOException { return SecureExecutor.execute(new SecureExecutor.WorkLoad<Future<T>>() { @Override public Future<T> run() { return handler.process(wr, listener); } }); }
Example #2
Source File: WebServicesClient.java From attic-apex-core with Apache License 2.0 | 5 votes |
public <T> Future<T> process(String url, final ITypeListener<T> listener, WebServicesAsyncHandler<T> handler) throws IOException { AsyncWebResource wr = client.asyncResource(url); return process(wr, listener, handler); }
Example #3
Source File: WebServicesClient.java From attic-apex-core with Apache License 2.0 | 5 votes |
public <T> Future<T> process(final AsyncWebResource wr, final ITypeListener<T> listener, final WebServicesAsyncHandler<T> handler) throws IOException { return SecureExecutor.execute(new SecureExecutor.WorkLoad<Future<T>>() { @Override public Future<T> run() { return handler.process(wr, listener); } }); }
Example #4
Source File: WebServicesClient.java From attic-apex-core with Apache License 2.0 | 5 votes |
@Override public Future<T> process(AsyncWebResource webResource, ITypeListener<T> listener) { return webResource.delete(listener); }
Example #5
Source File: WebServicesClient.java From Bats with Apache License 2.0 | 4 votes |
public <T> Future<T> process(String url, final ITypeListener<T> listener, WebServicesAsyncHandler<T> handler) throws IOException { AsyncWebResource wr = client.asyncResource(url); return process(wr, listener, handler); }
Example #6
Source File: WebServicesClient.java From Bats with Apache License 2.0 | 4 votes |
@Override public Future<T> process(AsyncWebResource webResource, ITypeListener<T> listener) { return webResource.get(listener); }
Example #7
Source File: WebServicesClient.java From Bats with Apache License 2.0 | 4 votes |
@Override public Future<T> process(AsyncWebResource webResource, ITypeListener<T> listener) { return webResource.delete(listener); }
Example #8
Source File: WebServicesClient.java From attic-apex-core with Apache License 2.0 | 4 votes |
@Override public Future<T> process(AsyncWebResource webResource, ITypeListener<T> listener) { return webResource.get(listener); }
Example #9
Source File: EagleServiceBaseClient.java From Eagle with Apache License 2.0 | 4 votes |
protected AsyncWebResource getAsyncWebResource(String relativePath){ return this.getJerseyClient().asyncResource(this.getBaseEndpoint() + relativePath); }
Example #10
Source File: EagleServiceBaseClient.java From eagle with Apache License 2.0 | 4 votes |
protected AsyncWebResource getAsyncWebResource(String relativePath){ return this.getJerseyClient().asyncResource(this.getBaseEndpoint() + relativePath); }
Example #11
Source File: WebServicesClient.java From Bats with Apache License 2.0 | votes |
public abstract Future<T> process(AsyncWebResource webResource, ITypeListener<T> listener);
Example #12
Source File: WebServicesClient.java From attic-apex-core with Apache License 2.0 | votes |
public abstract Future<T> process(AsyncWebResource webResource, ITypeListener<T> listener);