@Override public void write(int i) throws IOException { _byteArrayOutputStream.write(i); }
public WrappedServletOutputStream() { _byteArrayOutputStream = new WrappedByteArrayOutputStream(1024); }
public void reset() { _byteArrayOutputStream.reset(); }
public Object get(Integer sequence, String viewId) { Object key = new SerializedViewKey(viewId, sequence); Object value = _serializedViews.get(key); if (value == null) { value = getOldSerializedViewsMap().get(key); } return value; } }
public byte[] toByteArray() { return _byteArrayOutputStream.toByteArray(); }
@Override public ServletOutputStream getOutputStream() throws IOException { if (_charArrayWriter != null) throw new IllegalStateException(); if (_byteArrayWriter == null) { _byteArrayWriter = new WrappedServletOutputStream(); } return _byteArrayWriter; }
/** * Return a string containing a webapp-relative URL that the user can invoke * to render the specified view. * <p> * URLs and ViewIds are not quite the same; for example a url of "/foo.jsf" * or "/faces/foo.jsp" may be needed to access the view "/foo.jsp". * <p> * This method simply delegates to ViewHandlerSupport.calculateActionURL. */ public String getActionURL(FacesContext facesContext, String viewId) { return getViewHandlerSupport().calculateActionURL(facesContext, viewId); }
@Override public ServletOutputStream getOutputStream() throws IOException { if (_charArrayWriter != null) throw new IllegalStateException(); if (_byteArrayWriter == null) { _byteArrayWriter = new WrappedServletOutputStream(); } return _byteArrayWriter; }
public Object get(Integer sequence, String viewId) { Object key = new SerializedViewKey(viewId, sequence); Object value = _serializedViews.get(key); if (value == null) { Map<Object,Object> oldSerializedViewMap = getOldSerializedViewsMap(); if (oldSerializedViewMap != null) { value = oldSerializedViewMap.get(key); } } return value; } }
@Override public void write(int i) throws IOException { _byteArrayOutputStream.write(i); }
public WrappedServletOutputStream() { _byteArrayOutputStream = new WrappedByteArrayOutputStream(1024); }
public void reset() { _byteArrayOutputStream.reset(); }
public byte[] toByteArray() { return _byteArrayOutputStream.toByteArray(); }
@Override public ServletOutputStream getOutputStream() throws IOException { if (_charArrayWriter != null) { throw new IllegalStateException(); } if (_byteArrayWriter == null) { _byteArrayWriter = new WrappedServletOutputStream(); } return _byteArrayWriter; }
public Object get(Integer sequence, String viewId) { Object key = new SerializedViewKey(viewId, sequence); Object value = _serializedViews.get(key); if (value == null) { Map<Object,Object> oldSerializedViewMap = getOldSerializedViewsMap(); if (oldSerializedViewMap != null) { value = oldSerializedViewMap.get(key); } } return value; } }
@Override public void write(int i) throws IOException { _byteArrayOutputStream.write(i); }
public WrappedServletOutputStream() { _byteArrayOutputStream = new WrappedByteArrayOutputStream(1024); }
public void reset() { _byteArrayOutputStream.reset(); }
public byte[] toByteArray() { return _byteArrayOutputStream.toByteArray(); }
@Override public ServletOutputStream getOutputStream() throws IOException { if (_charArrayWriter != null) throw new IllegalStateException(); if (_byteArrayWriter == null) { _byteArrayWriter = new WrappedServletOutputStream(); } return _byteArrayWriter; }