/** * @see org.jboss.resteasy.client.ClientRequest#post(Class) */ @Override public <T> ClientResponse<T> post(Class<T> returnType) throws Exception { ClientResponse<T> response = super.post(returnType); handlePotentialServerError(response); return response; }
public <T> ClientResponse<T> post(Class<T> returnType) throws Exception { BaseClientResponse response = (BaseClientResponse) post(); response.setReturnType(returnType); return response; }
/** * @see org.jboss.resteasy.client.ClientRequest#post(java.lang.Class) */ @Override public <T> ClientResponse<T> post(Class<T> returnType) throws Exception { ClientResponse<T> response = super.post(returnType); handlePotentialServerError(response); return response; }
/** * @see org.jboss.resteasy.client.ClientRequest#post() */ @SuppressWarnings({ "unchecked", "rawtypes" }) @Override public ClientResponse post() throws Exception { ClientResponse response = super.post(); handlePotentialServerError(response); return response; }
public <T> ClientResponse<T> post(Class<T> returnType) throws Exception { BaseClientResponse response = (BaseClientResponse) post(); response.setReturnType(returnType); return response; }
/** * @see org.jboss.resteasy.client.ClientRequest#post() */ @SuppressWarnings({ "unchecked", "rawtypes" }) @Override public ClientResponse post() throws Exception { ClientResponse response = super.post(); handlePotentialServerError(response); return response; }
public <T> ClientResponse<T> post(Class<T> returnType, Type genericType) throws Exception { BaseClientResponse response = (BaseClientResponse) post(); response.setReturnType(returnType); response.setGenericReturnType(genericType); return response; }
public <T> ClientResponse<T> post(Class<T> returnType, Type genericType) throws Exception { BaseClientResponse response = (BaseClientResponse) post(); response.setReturnType(returnType); response.setGenericReturnType(genericType); return response; }
public ClientResponse<String> post(String url, String contentType, Object data) throws Exception { ClientRequest request = new ClientRequest(url); request.body(contentType, data); ClientResponse response = request.post(); return response; }
/** * Automatically does POST/Create pattern. Will throw a ClientResponseFailure * if status is something other than 201 * * @return Link to created resource * @throws Exception, ClientResponseFailure */ public Link create() throws Exception, ClientResponseFailure { BaseClientResponse response = (BaseClientResponse) post(); if (response.getStatus() != 201) throw new ClientResponseFailure(response); return response.getLocationLink(); }
/** * Automatically does POST/Create pattern. Will throw a ClientResponseFailure * if status is something other than 201 * * @return Link to created resource * @throws Exception, ClientResponseFailure */ public Link create() throws Exception, ClientResponseFailure { BaseClientResponse response = (BaseClientResponse) post(); if (response.getStatus() != 201) throw new ClientResponseFailure(response); return response.getLocationLink(); }
public <T> ClientResponse<T> post(GenericType type) throws Exception { BaseClientResponse response = (BaseClientResponse) post(); response.setReturnType(type.getType()); response.setGenericReturnType(type.getGenericType()); return response; }
public <T> ClientResponse<T> post(GenericType type) throws Exception { BaseClientResponse response = (BaseClientResponse) post(); response.setReturnType(type.getType()); response.setGenericReturnType(type.getGenericType()); return response; }
public <T> T postTarget(Class<T> returnType) throws Exception { BaseClientResponse<T> response = (BaseClientResponse<T>) post(returnType); if (response.getStatus() == 204) return null; if (response.getStatus() != 200) throw new ClientResponseFailure(response); T obj = response.getEntity(); if (obj instanceof InputStream) { response.setWasReleased(true); } return obj; }
public <T> T postTarget(Class<T> returnType) throws Exception { BaseClientResponse<T> response = (BaseClientResponse<T>) post(returnType); if (response.getStatus() == 204) return null; if (response.getStatus() != 200) throw new ClientResponseFailure(response); T obj = response.getEntity(); if (obj instanceof InputStream) { response.setWasReleased(true); } return obj; }
ClientResponse<?> responseObj = checkResponse(restRequest.post()); JaxbProcessInstanceResponse processInstance = (JaxbProcessInstanceResponse) responseObj .getEntity(JaxbProcessInstanceResponse.class);
clientResponse = clientRequest.post(String.class);
|| getRequest().getAuthorizationMethod() == AuthorizationMethod.AUTHORIZATION_REQUEST_HEADER_FIELD || getRequest().getAuthorizationMethod() == AuthorizationMethod.FORM_ENCODED_BODY_PARAMETER) { clientResponse = clientRequest.post(String.class); } else { //AuthorizationMethod.URL_QUERY_PARAMETER clientResponse = clientRequest.get(String.class);
clientResponse = clientRequest.post(String.class);
clientResponse = clientRequest.post(String.class); } else { clientResponse = clientRequest.get(String.class);