Package com.bradmcevoy.http

Examples of com.bradmcevoy.http.XmlWriter.open()


  public void sendContent( OutputStream out, Range range, Map<String, String> params, String contentType ) throws IOException, NotAuthorizedException {
    String subpath = getRealFile().getCanonicalPath().substring( factory.getRoot().getCanonicalPath().length() ).replace( '\\', '/' );
    String uri = "/" + factory.getContextPath() + subpath;
    XmlWriter w = new XmlWriter( out );
    w.open( "html" );
    w.open( "body" );
    w.begin( "h1" ).open().writeText( this.getName() ).close();
    w.open( "table" );
    for( Resource r : getChildren() ) {
      w.open( "tr" );
View Full Code Here


    String uri = "/" + factory.getContextPath() + subpath;
    XmlWriter w = new XmlWriter( out );
    w.open( "html" );
    w.open( "body" );
    w.begin( "h1" ).open().writeText( this.getName() ).close();
    w.open( "table" );
    for( Resource r : getChildren() ) {
      w.open( "tr" );

      w.open( "td" );
      w.begin( "a" ).writeAtt( "href", uri + "/" + r.getName() ).open().writeText( r.getName() ).close();
View Full Code Here

    w.open( "html" );
    w.open( "body" );
    w.begin( "h1" ).open().writeText( this.getName() ).close();
    w.open( "table" );
    for( Resource r : getChildren() ) {
      w.open( "tr" );

      w.open( "td" );
      w.begin( "a" ).writeAtt( "href", uri + "/" + r.getName() ).open().writeText( r.getName() ).close();
      w.close( "td" );
View Full Code Here

    w.begin( "h1" ).open().writeText( this.getName() ).close();
    w.open( "table" );
    for( Resource r : getChildren() ) {
      w.open( "tr" );

      w.open( "td" );
      w.begin( "a" ).writeAtt( "href", uri + "/" + r.getName() ).open().writeText( r.getName() ).close();
      w.close( "td" );

      w.begin( "td" ).open().writeText( r.getModifiedDate() + "" ).close();
      w.close( "tr" );
View Full Code Here

  @Override
  public void sendContent( OutputStream out, Range range, Map<String, String> params, String contentType ) throws IOException, NotAuthorizedException {
    String subpath = realFile.getCanonicalPath().substring( factory.getRoot().getCanonicalPath().length() ).replace( '\\', '/' );
    String uri = "/" + factory.getContextPath() + subpath;
    XmlWriter w = new XmlWriter( out );
    w.open( "html" );
    w.open( "body" );
    w.begin( "h1" ).open().writeText( this.getName() ).close();
    w.open( "table" );
    for( Resource r : getChildren() ) {
      w.open( "tr" );
View Full Code Here

  public void sendContent( OutputStream out, Range range, Map<String, String> params, String contentType ) throws IOException, NotAuthorizedException {
    String subpath = realFile.getCanonicalPath().substring( factory.getRoot().getCanonicalPath().length() ).replace( '\\', '/' );
    String uri = "/" + factory.getContextPath() + subpath;
    XmlWriter w = new XmlWriter( out );
    w.open( "html" );
    w.open( "body" );
    w.begin( "h1" ).open().writeText( this.getName() ).close();
    w.open( "table" );
    for( Resource r : getChildren() ) {
      w.open( "tr" );
View Full Code Here

    String uri = "/" + factory.getContextPath() + subpath;
    XmlWriter w = new XmlWriter( out );
    w.open( "html" );
    w.open( "body" );
    w.begin( "h1" ).open().writeText( this.getName() ).close();
    w.open( "table" );
    for( Resource r : getChildren() ) {
      w.open( "tr" );

      w.open( "td" );
      w.begin( "a" ).writeAtt( "href", uri + "/" + r.getName() ).open().writeText( r.getName() ).close();
View Full Code Here

    w.open( "html" );
    w.open( "body" );
    w.begin( "h1" ).open().writeText( this.getName() ).close();
    w.open( "table" );
    for( Resource r : getChildren() ) {
      w.open( "tr" );

      w.open( "td" );
      w.begin( "a" ).writeAtt( "href", uri + "/" + r.getName() ).open().writeText( r.getName() ).close();
      w.close( "td" );
View Full Code Here

    w.begin( "h1" ).open().writeText( this.getName() ).close();
    w.open( "table" );
    for( Resource r : getChildren() ) {
      w.open( "tr" );

      w.open( "td" );
      w.begin( "a" ).writeAtt( "href", uri + "/" + r.getName() ).open().writeText( r.getName() ).close();
      w.close( "td" );

      w.begin( "td" ).open().writeText( r.getModifiedDate() + "" ).close();
      w.close( "tr" );
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.