Package pt.webdetails.cpf

Examples of pt.webdetails.cpf.VersionChecker


  }

  @Exposed( accessLevel = AccessLevel.PUBLIC )
  public void checkVersion( OutputStream out ) throws IOException,
    JSONException {
    VersionChecker versionChecker = new CdeVersionChecker(
      CdeSettings.getSettings() );
    writeOut( out, versionChecker.checkVersion() );
  }
View Full Code Here


    writeOut( out, versionChecker.checkVersion() );
  }

  @Exposed( accessLevel = AccessLevel.PUBLIC )
  public void getVersion( OutputStream out ) throws IOException, JSONException {
    VersionChecker versionChecker = new CdeVersionChecker(
      CdeSettings.getSettings() );
    writeOut( out, versionChecker.getVersion() );
  }
View Full Code Here

  @GET
  @Path( "/check" )
  @Produces( "text/plain" )
  public void checkVersion( @Context HttpServletResponse response ) throws IOException {
    VersionChecker versionChecker = new CdeVersionChecker( CdeSettings.getSettings() );
    CheckVersionResponse result = versionChecker.checkVersion();
    JsonUtils.buildJsonResult( response.getOutputStream(), result != null, result );
  }
View Full Code Here

  @GET
  @Path( "/get" )
  @Produces( "text/plain" )
  @Exposed( accessLevel = AccessLevel.PUBLIC )
  public String getVersion() {
    VersionChecker versionChecker = new CdeVersionChecker( CdeSettings.getSettings() );
    return versionChecker.getVersion();
  }
View Full Code Here

TOP

Related Classes of pt.webdetails.cpf.VersionChecker

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.