uCosminexus Application Server, Web Service Development Guide
The following table describes the thread safety of the client APIs for RESTful Web Services.
Table 25-8 Thread safety of the client APIs for RESTful Web Services
| No. | Interface or class | Constructor/ Method/ Field | Thread Safety#1 |
|---|---|---|---|
| com.cosminexus.jersey.api.client package | |||
| 1 | Client | create() | Y |
| 2 | ApplicationPath | create(ClientConfig cc) | Y#2 |
| 3 | Consumes | destroy() | N |
| 4 | CookieParam | getProperties() | N |
| 5 | DefaultValue | handle(ClientRequest request) | Y#2 |
| 6 | resource(String u) | Y | |
| 7 | resource(URI u) | Y | |
| 8 | setChunkedEncodingSize(Integer chunkSize) | N | |
| 9 | setConnectTimeout(Integer interval) | N | |
| 10 | setFollowRedirects(Boolean redirect) | N | |
| 11 | setReadTimeout(Integer interval) | N | |
| 12 | ClientRequest | All methods | N |
| 13 | ClientRequest.Builder | All methods | N |
| 14 | ClientResponse | All methods | N |
| 15 | GenericType | All methods | Y |
| 16 | WebResource | accept(MediaType... types) | Y |
| 17 | accept(String... types) | Y | |
| 18 | acceptLanguage(Locale... locales) | Y | |
| 19 | acceptLanguage(String... locales) | Y | |
| 20 | cookie(Cookie cookie) | Y | |
| 21 | delete() | Y | |
| 22 | delete(Class<T> c) | Y | |
| 23 | delete(Class<T> c, Object requestEntity) | C | |
| 24 | delete(GenericType<T> gt) | Y | |
| 25 | delete(GenericType<T> gt, Object requestEntity) | C | |
| 26 | delete(Object requestEntity) | C | |
| 27 | entity(Object entity) | Y | |
| 28 | entity(Object entity, MediaType type) | Y | |
| 29 | entity(Object entity, String type) | Y | |
| 30 | get(Class<T> c) | Y | |
| 31 | get(GenericType<T> gt) | Y | |
| 32 | getRequestBuilder() | Y | |
| 33 | getURI() | Y | |
| 34 | getUriBuilder() | Y | |
| 35 | head() | Y | |
| 36 | header(String name, Object value) | Y | |
| 37 | method(String method) | Y | |
| 38 | method(String method, Class<T> c) | Y | |
| 39 | method(String method, Class<T> c, Object requestEntity) | C | |
| 40 | method(String method, GenericType<T> gt) | Y | |
| 41 | method(String method, GenericType<T> gt, Object requestEntity) | C | |
| 42 | method(String method, Object requestEntity) | C | |
| 43 | options(Class<T> c) | Y | |
| 44 | options(GenericType<T> gt) | Y | |
| 45 | path(String path) | Y | |
| 46 | post() | Y | |
| 47 | post(Class<T> c) | Y | |
| 48 | post(Class<T> c, Object requestEntity) | C | |
| 49 | post(GenericType<T> gt) | Y | |
| 50 | post(GenericType<T> gt, Object requestEntity) | C | |
| 51 | post(Object requestEntity) | C | |
| 52 | put() | Y | |
| 53 | put(Class<T> c) | Y | |
| 54 | put(Class<T> c, Object requestEntity) | C | |
| 55 | put(GenericType<T> gt) | Y | |
| 56 | put(GenericType<T> gt, Object requestEntity) | C | |
| 57 | put(Object requestEntity) | C | |
| 58 | queryParam(String key, String value) | Y | |
| 59 | queryParams(MultivaluedMap<String,String>params) | Y | |
| 60 | type(MediaType type) | Y | |
| 61 | type(String type) | Y | |
| 62 | uri(URI uri) | Y | |
| 63 | WebResource.Builder | All methods | N |
| com.cosminexus.jersey.api.client.config package | |||
| 64 | DefaultClientConfig | All methods | N |
| 65 | Provider | -- | Y |
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.