@Override public InputStream getResourceAsStream(String path) { return wrapped.getResourceAsStream(path); }
@Override public InputStream getThemeResourceAsStream(UI uI, String themeName, String resource) { VaadinPortletSession session = (VaadinPortletSession) uI.getSession(); PortletContext portletContext = session.getPortletSession() .getPortletContext(); return portletContext .getResourceAsStream("/" + VaadinPortlet.THEME_DIR_PATH + '/' + themeName + "/" + resource); }
/** * @see javax.servlet.ServletContext#getResourceAsStream(String) */ public InputStream getResourceAsStream(String arg0) { return portletContext.getResourceAsStream(arg0); }
@Override public InputStream getResourceAsStream(String path) { return portletContext.getResourceAsStream(path); }
public InputStream getResourceAsStream(String s) { return mPortletContext.getResourceAsStream(s); }
@Override public InputStream getResourceAsStream(String path) { return portletContext.getResourceAsStream(path); }
public InputStream getResourceAsStream(String name) { return pcontext.getResourceAsStream(name); }
public InputStream getResourceAsStream(String arg0) { return portletContext.getResourceAsStream(arg0); }
public InputStream getResourceAsStream(String path) { return _ctx.getResourceAsStream(path); }
public InputStream getInputStream(String url) throws Exception { String path = removeScheme(url); return pcontext_.getResourceAsStream(path); }
/** * This implementation delegates to <code>PortletContext.getResourceAsStream</code>, * but throws a FileNotFoundException if not found. * @see javax.portlet.PortletContext#getResourceAsStream(String) */ public InputStream getInputStream() throws IOException { InputStream is = this.portletContext.getResourceAsStream(this.path); if (is == null) { throw new FileNotFoundException("Could not open " + getDescription()); } return is; }
@Override public InputStream getResourceAsStream(String path) { checkNull(path, "path"); return _portletContext.getResourceAsStream(path); }
/** * {@inheritDoc} * * @see org.xwiki.container.ApplicationContext#getResourceAsStream(String) */ public InputStream getResourceAsStream(String resourceName) { return getPortletContext().getResourceAsStream(resourceName); }
private InputStream getResourceAsStream() { return _prtctx != null ? _prtctx.getResourceAsStream(_uri) : _svlctx != null ? _svlctx.getResourceAsStream(_uri) : _extctx != null ? _extctx.getResourceAsStream(_uri) : null; } }
/** * This implementation delegates to {@code PortletContext.getResourceAsStream}, * but throws a FileNotFoundException if not found. * @see javax.portlet.PortletContext#getResourceAsStream(String) */ @Override public InputStream getInputStream() throws IOException { InputStream is = this.portletContext.getResourceAsStream(this.path); if (is == null) { throw new FileNotFoundException("Could not open " + getDescription()); } return is; }
public InputStream getResourceAsStream(String path) { return getWrapped().getResourceAsStream(path); }
public InputStream getResourceAsStream(String path) { AssertionUtil.assertNotNull("path is null.", path); return portletContext.getResourceAsStream(path); }
public InputStream getResourceAsStream(String path) { return getWrapped().getResourceAsStream(path); }
public InputStream getResourceAsStream(String path) { return getWrapped().getResourceAsStream(path); }
protected void readSwfFileInfo( RenderRequest request, RenderResponse response, Context context, SWFContext swfContext ) { String swfSrc = swfContext.getSrc(); int swfSrcLen = ( swfSrc != null ? swfSrc.length() : 0 ); if ( swfSrcLen > 0 ) { SWFHeader swfH = new SWFHeader(); String contextPath = request.getContextPath(); int contextPathLen = ( contextPath != null ? contextPath.length() : 0 ); if ( contextPathLen > 0 && swfSrcLen > contextPathLen && swfSrc.startsWith( contextPath ) ) { swfSrc = swfSrc.substring( contextPathLen ); } if ( swfH.parseHeader( this.getPortletContext().getResourceAsStream( swfSrc ) ) ) { swfContext.setHeader( swfH ); } } }