2627282930313233
public String loadResourceAsText(String resourcePath) { try { Type type = client.getType(); return text(get(uri(resourcePath, type)), type); } catch (Exception cause) { throw new InvalidStoryResource(resourcePath, cause); } }
2526272829303132
public void uploadResource(Resource resource) { try { Type type = client.getType(); put(uri(resource.getURI(), type), entity(resource, type)); } catch (Exception cause) { throw new InvalidStoryResource(resource.toString(), cause); } }
2223242526272829
@Override public String loadResourceAsText(String storyPath) { try { return parseOdt(loadOdt(resourceAsStream(storyPath))); } catch (Exception cause) { throw new InvalidStoryResource(storyPath, cause); } }
1314151617181920
public String loadResourceAsText(String resourcePath) { try { return parseOdt(loadOdt(resourceAsStream(resourcePath))); } catch (Exception cause) { throw new InvalidStoryResource(resourcePath, cause); } }