Android Open Source - Cardeto Cardeto Web Server Module






From Project

Back to project page Cardeto.

License

The source code is released under:

Apache License

If you think the Android project Cardeto listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.ggt.cardeto.embeddedwebserver;
//ww w.ja  v  a2  s  .  c o m
import java.util.Properties;

/**
 * Interface to implement to become a cardeto web server module which can handle
 * a specific http request.
 * 
 * @author guiguito
 * 
 */
public interface CardetoWebServerModule {

  /**
   * Get module title.
   * 
   * @return
   */
  public String getModuleTitle();

  /**
   * Get module description.
   * 
   * @return
   */
  public String getDescription();

  /**
   * Get module URL.
   * 
   * @return
   */
  public String getUrl();

  /**
   * Tells whether the module can handle the request.
   * 
   * @param uri
   * @return
   */
  public boolean matchURI(String uri);

  /**
   * Calls this method to make the module handle the request.
   * 
   * @param uri
   * @param method
   * @param header
   * @param params
   * @param files
   * @return
   */
  public StringBuilder handleRequest(String uri, String method,
      Properties header, Properties params, Properties files);

  // TODO add a method to check if permissions are available to enable this
  // module

}




Java Source Code List

com.ggt.cardeto.CardetoService.java
com.ggt.cardeto.embeddedwebserver.CardetoWebServerModule.java
com.ggt.cardeto.embeddedwebserver.CardetoWebServer.java
com.ggt.cardeto.embeddedwebserver.appinfomodule.AppInfoModule.java
com.ggt.cardeto.embeddedwebserver.clipboardmodule.ClipboardModule.java
com.ggt.cardeto.embeddedwebserver.logcatmodule.LogcatModule.java
com.ggt.cardeto.embeddedwebserver.sqlitemodule.GenericSQLiteDatabaseHelper.java
com.ggt.cardeto.embeddedwebserver.sqlitemodule.SQLiteModule.java
com.ggt.cardeto.embeddedwebserver.sqlitemodule.tableouputrenderers.CSVRenderer.java
com.ggt.cardeto.embeddedwebserver.sqlitemodule.tableouputrenderers.HtmlRenderer.java
com.ggt.cardeto.embeddedwebserver.sqlitemodule.tableouputrenderers.JsonRenderer.java
com.ggt.cardeto.embeddedwebserver.sqlitemodule.tableouputrenderers.TableOutputRenderer.java
com.ggt.cardeto.embeddedwebserver.sqlitemodule.tableouputrenderers.XmlRenderer.java
com.ggt.cardeto.embeddedwebserver.staticvarsmodule.StaticVarsModule.java
com.ggt.cardeto.externallib.NanoHTTPD.java
com.ggt.cardeto.utils.CardetoConstants.java
com.ggt.cardeto.utils.NetworkUtilsOld.java
com.ggt.cardeto.utils.NetworkUtils.java
com.ggt.cardetosample.TestActivity.java
com.ggt.cardetosample.database.CardetoSampleDatabaseDataSource.java
com.ggt.cardetosample.database.CardetoSampleDatabaseHelper.java
com.ggt.cardetosample.database.Log.java