/** * Perform a GET call to the given URI. */ protected Response callGet(String uri) { try { Connector con = getConnector(); return con.call(buildUri(uri)); } catch (ConnectorProviderException cpe) { throw new WebScriptsPlatformException("Unable to find config for remote store.", cpe); } }
/** * Perform a POST call to the given URI with the supplied input. */ protected Response callPost(String uri, InputStream in) { try { Connector con = getConnector(); return con.call(buildUri(uri), null, in); } catch (ConnectorProviderException cpe) { throw new WebScriptsPlatformException("Unable to find config for remote store.", cpe); } }
/** * Perform a GET call to the given URI. */ protected Response callGet(String uri) { try { Connector con = getConnector(); return con.call(buildUri(uri)); } catch (ConnectorProviderException cpe) { throw new WebScriptsPlatformException("Unable to find config for remote store.", cpe); } }
/** * Perform a GET call to the given URI. */ protected Response callGet(String uri) { try { Connector con = getConnector(); return con.call(buildUri(uri)); } catch (ConnectorProviderException cpe) { throw new WebScriptsPlatformException("Unable to find config for remote store.", cpe); } }
/** * Perform a POST call to the given URI with the supplied input. */ protected Response callPost(String uri, InputStream in) { try { Connector con = getConnector(); return con.call(buildUri(uri), null, in); } catch (ConnectorProviderException cpe) { throw new WebScriptsPlatformException("Unable to find config for remote store.", cpe); } }
/** * Perform a POST call to the given URI with the supplied input. */ protected Response callPost(String uri, InputStream in) { try { Connector con = getConnector(); return con.call(buildUri(uri), null, in); } catch (ConnectorProviderException cpe) { throw new WebScriptsPlatformException("Unable to find config for remote store.", cpe); } }
/** * Perform a DELETE call to the given URI. */ protected Response callDelete(String uri) { try { Connector con = getConnector(); ConnectorContext context = new ConnectorContext(HttpMethod.DELETE, null, null); return con.call(buildUri(uri), context); } catch (ConnectorProviderException cpe) { throw new WebScriptsPlatformException("Unable to find config for remote store.", cpe); } }
/** * Perform a DELETE call to the given URI. */ protected Response callDelete(String uri) { try { Connector con = getConnector(); ConnectorContext context = new ConnectorContext(HttpMethod.DELETE, null, null); return con.call(buildUri(uri), context); } catch (ConnectorProviderException cpe) { throw new WebScriptsPlatformException("Unable to find config for remote store.", cpe); } }
/** * Perform a DELETE call to the given URI. */ protected Response callDelete(String uri) { try { Connector con = getConnector(); ConnectorContext context = new ConnectorContext(HttpMethod.DELETE, null, null); return con.call(buildUri(uri), context); } catch (ConnectorProviderException cpe) { throw new WebScriptsPlatformException("Unable to find config for remote store.", cpe); } }