Android Open Source - hitch-hiker H T T P Input






From Project

Back to project page hitch-hiker.

License

The source code is released under:

MIT License

If you think the Android project hitch-hiker 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 autostoppista.core.http;
import java.util.HashMap;
import autostoppista.core.restcall.Login;
public class HTTPInput {
  private String path, method;
  private Login l;
  private HashMap<String, String> params;
  public HTTPInput(String path, String method, HashMap<String, String> params) {
    this.path = path;/*from  w  w w.  j  a  v a2 s. co m*/
    this.params = params;
    this.method = method;
  }
  public HTTPInput(String path, String method, HashMap<String, String> params, Login l) {
    this.path = path;
    this.params = params;
    this.method = method;
    this.l = l;
  }
  public String getPath() {
    return path;
  }
  public HashMap<String, String> getParams() {
    return params;
  }
  public String getMethod() {
    return method;
  }
  public String getUrlEncodedParams() {
    if(params==null) return null;
    String out = "" ;
    for (String k : params.keySet()){
      out += k +"="+ params.get(k)+"&";
    }
    out = out.substring(0, out.length());
    return out;
  }
  public String getloginInfo(){
    if(l==null) return null;
    return l.getAuthenticationHttpHeader();
  }
}




Java Source Code List

autostoppista.android.adapters.AdapterFeedbackItem.java
autostoppista.android.adapters.AdapterUserItem.java
autostoppista.android.adapters.ObservableCollection.java
autostoppista.android.fragments.ExtendedFragment.java
autostoppista.android.fragments.Fragment_Login.java
autostoppista.android.fragments.Fragment_feedbackForm.java
autostoppista.android.fragments.Fragment_userDetail.java
autostoppista.android.fragments.Fragment_userMainpage.java
autostoppista.android.fragments.Fragment_userWaiting.java
autostoppista.app.MainActivity.java
autostoppista.app.ModeUse.java
autostoppista.core.gcm.GCM.java
autostoppista.core.gcm.GcmBroadcastReceiver.java
autostoppista.core.gcm.Message.java
autostoppista.core.gps.GPSManager.java
autostoppista.core.gps.Position.java
autostoppista.core.http.HTTPAsyncBasic.java
autostoppista.core.http.HTTPAsync.java
autostoppista.core.http.HTTPCalls.java
autostoppista.core.http.HTTPInputBasic.java
autostoppista.core.http.HTTPInput.java
autostoppista.core.http.HTTPOutput.java
autostoppista.core.http.HTTPStartListener.java
autostoppista.core.http.HTTPonCompleteListener.java
autostoppista.core.restcall.FeedbackReturn.java
autostoppista.core.restcall.FeedbackSummary.java
autostoppista.core.restcall.LoginSaver.java
autostoppista.core.restcall.Login.java
autostoppista.core.restcall.RestCalls.java
autostoppista.core.restcall.UserInfo.java