Package javax.portlet

Examples of javax.portlet.MimeResponse


  public void resetBuffer() {

    PortletResponse portletResponse = getWrapped();

    if (portletResponse instanceof MimeResponse) {
      MimeResponse mimeResponse = (MimeResponse) portletResponse;
      mimeResponse.resetBuffer();
    }
    else {
      throw new UnsupportedOperationException();
    }
  }
View Full Code Here


public class ActionURLRenderer extends PortletURLRenderer {

  @Override
  public void encodeEnd(FacesContext facesContext, UIComponent uiComponent) throws IOException {
    ExternalContext externalContext = facesContext.getExternalContext();
    MimeResponse mimeResponse = (MimeResponse) externalContext.getResponse();
    PortletURL actionURL = mimeResponse.createActionURL();
    super.encodeEnd(facesContext, uiComponent, actionURL);
  }
View Full Code Here

  public int getBufferSize() {

    PortletResponse portletResponse = getWrapped();

    if (portletResponse instanceof MimeResponse) {
      MimeResponse mimeResponse = (MimeResponse) portletResponse;

      return mimeResponse.getBufferSize();
    }
    else {
      return 0;
    }
  }
View Full Code Here

  public String getCharacterEncoding() {

    PortletResponse portletResponse = getWrapped();

    if (portletResponse instanceof MimeResponse) {
      MimeResponse mimeResponse = (MimeResponse) portletResponse;

      return mimeResponse.getCharacterEncoding();
    }
    else {
      return null;
    }
  }
View Full Code Here

  public String getContentType() {

    PortletResponse portletResponse = getWrapped();

    if (portletResponse instanceof MimeResponse) {
      MimeResponse mimeResponse = (MimeResponse) portletResponse;

      return mimeResponse.getContentType();
    }
    else {
      return null;
    }
  }
View Full Code Here

    PortletResponse portletResponse = getWrapped();

    if (portletResponse instanceof MimeResponse) {

      MimeResponse mimeResponse = (MimeResponse) portletResponse;
      mimeResponse.setContentType(type);
    }
    else {
      throw new UnsupportedOperationException();
    }
  }
View Full Code Here

  public boolean isCommitted() {

    PortletResponse portletResponse = getWrapped();

    if (portletResponse instanceof MimeResponse) {
      MimeResponse mimeResponse = (MimeResponse) portletResponse;

      return mimeResponse.isCommitted();
    }
    else {
      return true;
    }
  }
View Full Code Here

  public PrintWriter getWriter() throws IOException {

    PortletResponse portletResponse = getWrapped();

    if (portletResponse instanceof MimeResponse) {
      MimeResponse mimeResponse = (MimeResponse) portletResponse;

      return mimeResponse.getWriter();
    }
    else {
      throw new UnsupportedOperationException();
    }
  }
View Full Code Here

  @Override
  public void write(int b) throws IOException {

    if (portletResponse instanceof MimeResponse) {
      MimeResponse mimeResponse = (MimeResponse) portletResponse;
      mimeResponse.getPortletOutputStream().write(b);
    }
  }
View Full Code Here

        // This happens when Mojarra's JspViewHandlingStrategy#buildView(FacesContext context, UIViewRoot)
        // executes.
        facesImplementationServletResponse.flushBuffer();
      }
      else {
        MimeResponse mimeResponse = (MimeResponse) portletResponse;
        mimeResponse.flushBuffer();
      }
    }
    else {

      if (manageIncongruities) {
View Full Code Here

TOP

Related Classes of javax.portlet.MimeResponse

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.