Skip to content
This repository was archived by the owner on May 28, 2018. It is now read-only.

Commit 4654ae4

Browse files
committed
Added javadoc to ResourceMethodInvoker
1 parent d1acf63 commit 4654ae4

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

Diff for: ext/proxy-client/src/main/java/org/glassfish/jersey/client/proxy/JerseyResourceMethodInvoker.java

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
import javax.ws.rs.client.Invocation;
55
import javax.ws.rs.core.GenericType;
66

7+
/**
8+
* Default method invoker for {@link WebResourceFactory}
9+
*/
710
public class JerseyResourceMethodInvoker implements ResourceMethodInvoker<Invocation.Builder> {
811

912
@Override

Diff for: ext/proxy-client/src/main/java/org/glassfish/jersey/client/proxy/ResourceMethodInvoker.java

+23
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,31 @@
66

77
public interface ResourceMethodInvoker<B extends Invocation.Builder> {
88

9+
/**
10+
* Call corresponding method in specified {@link Invocation.Builder}
11+
*
12+
* @param <T> generic response entity type.
13+
* @param builder invocation builder to trigger
14+
* @param name method name
15+
* @param responseType representation of a generic Java type the response entity will be converted to.
16+
* @return invocation response.
17+
*
18+
* @see javax.ws.rs.client.SyncInvoker#method(String, GenericType)
19+
*/
920
<T> T method(B builder, String name, GenericType<T> responseType);
1021

22+
/**
23+
* Call corresponding method in specified {@link Invocation.Builder}
24+
*
25+
* @param <T> generic response entity type.
26+
* @param builder invocation builder to trigger
27+
* @param name method name
28+
* @param entity request entity.
29+
* @param responseType representation of a generic Java type the response entity will be converted to.
30+
* @return invocation response.
31+
*
32+
* @see javax.ws.rs.client.SyncInvoker#method(String, Entity, GenericType)
33+
*/
1134
<T> T method(B builder, String name, Entity<?> entity, GenericType<T> responseType);
1235
}
1336

0 commit comments

Comments
 (0)