Package org.apache.myfaces.trinidadinternal.renderkit.core.ppr

Examples of org.apache.myfaces.trinidadinternal.renderkit.core.ppr.XmlResponseWriter.endDocument()


    xrw.startElement("partial-response", null);
    xrw.startElement("noop", null);
    xrw.endElement("noop");     
    xrw.endElement("partial-response");

    xrw.endDocument();
    xrw.close();
  }

  /**
   * Returns the value of the PPR optimization parameter.  We currently support "on" and "off"
View Full Code Here


    rw.startDocument();
    rw.startElement("error", null);
    rw.writeAttribute("status", sc, null);
    rw.writeText(string, null);
    rw.endElement("error");
    rw.endDocument();
    rw.close();   
  }
 
  private String _contentType = null;
  static private final TrinidadLogger _LOG =
View Full Code Here

    rw.startElement("partial-response", null);
    rw.startElement("redirect", null);
    rw.writeAttribute("url", url, null);
    rw.endElement("redirect");
    rw.endElement("partial-response");
    rw.endDocument();
    rw.close();
  }

  /**
   * Handle a server-side error by reporting it back to the client.
View Full Code Here

    rw.startElement("error-message", null);
    rw.writeText(_getExceptionString(t) + _PLEASE_SEE_ERROR_LOG + error, null);
    rw.endElement("error-message");
    rw.endElement("error");
    rw.endElement("partial-response");
    rw.endDocument();
    rw.close();
  }


  static private String _getExceptionString(Throwable t)
View Full Code Here

    rw.startDocument();
    rw.startElement("error", null);
    rw.writeAttribute("status", sc, null);
    rw.writeText(string, null);
    rw.endElement("error");
    rw.endDocument();
    rw.close();   
  }
 
  private String _contentType = null;
  static private final TrinidadLogger _LOG =
View Full Code Here

    // FIXME: this code is duplicated in PPRResponseWriter - fix that
    rw.write("<?Tr-XHR-Response-Type ?>\n");
    rw.startElement("redirect", null);
    rw.writeText(url, null);
    rw.endElement("redirect");
    rw.endDocument();
    rw.close();
  }

  /**
   * Handle a server-side error by reporting it back to the client.
View Full Code Here

    rw.write("<?Tr-XHR-Response-Type ?>\n");
    rw.startElement("error", null);
    rw.writeAttribute("status", HttpServletResponse.SC_INTERNAL_SERVER_ERROR, null);
    rw.writeText(_getExceptionString(t) + _PLEASE_SEE_ERROR_LOG + error, null);
    rw.endElement("error");
    rw.endDocument();
    rw.close();
  }


  static private String _getExceptionString(Throwable t)
View Full Code Here

    xrw.startElement("partial-response", null);
    xrw.startElement("noop", null);
    xrw.endElement("noop");     
    xrw.endElement("partial-response");

    xrw.endDocument();
    xrw.close();
  }

  /**
   * Returns the value of the PPR optimization parameter.  We currently support "on" and "off"
View Full Code Here

    rw.startElement("partial-response", null);
    rw.startElement("redirect", null);
    rw.writeAttribute("url", url, null);
    rw.endElement("redirect");
    rw.endElement("partial-response");
    rw.endDocument();
    rw.close();
  }

  /**
   * Handle a server-side error by reporting it back to the client.
View Full Code Here

    rw.startElement("error-message", null);
    rw.writeText(_getExceptionString(t) + _PLEASE_SEE_ERROR_LOG + error, null);
    rw.endElement("error-message");
    rw.endElement("error");
    rw.endElement("partial-response");
    rw.endDocument();
    rw.close();
  }


  static private String _getExceptionString(Throwable t)
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.