Android Open Source - inspectable Base Handler






From Project

Back to project page inspectable.

License

The source code is released under:

Apache License

If you think the Android project inspectable 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 me.hanqin.apps.inspect.handlers;
/*from  w  w w  .ja v  a2 s  .c om*/
import android.content.Context;

import java.util.Map;

import fi.iki.elonen.NanoHTTPD;

import static fi.iki.elonen.NanoHTTPD.Response;

public abstract class BaseHandler {
    public static final String DISPATCH_KEY_DATABASE = "database";
    public static final String PARAM_KEY_BULK_OPERATIONS = "bulk";
    public static final String PARAM_KEY_SQL = "sql";

    protected Context targetContext;

    public BaseHandler(Context targetContext) {
        this.targetContext = targetContext;
    }

    public abstract Response handle(String uri, NanoHTTPD.Method method, Map<String, String> headers, Map<String, String> params, Map<String, String> files);
}




Java Source Code List

fi.iki.elonen.NanoHTTPD.java
me.hanqin.apps.inspect.Inspectable.java
me.hanqin.apps.inspect.PreferenceConfigure.java
me.hanqin.apps.inspect.handlers.BaseHandler.java
me.hanqin.apps.inspect.handlers.DatabaseHandler.java
me.hanqin.apps.inspect.server.DefaultRequestDispatcher.java
me.hanqin.apps.inspect.server.HttpServer.java
me.hanqin.apps.inspect.util.JSONUtil.java