// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: braces fieldsfirst space lnc package com.olio.communication.actions; import android.os.Parcel; import android.os.Parcelable; import java.io.Serializable; import java.util.LinkedList; import java.util.List; import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder; // Referenced classes of package com.olio.communication.actions: // Action, WebHeader public class WebAction extends Action implements Serializable, Parcelable { public static final class HttpVerb extends Enum { private static final HttpVerb $VALUES[]; public static final HttpVerb DELETE; public static final HttpVerb DOWNLOAD; public static final HttpVerb GET; public static final HttpVerb LOGIN; public static final HttpVerb POST; public static final HttpVerb PUT; public static HttpVerb valueOf(String s) { return (HttpVerb)Enum.valueOf(com/olio/communication/actions/WebAction$HttpVerb, s); } public static HttpVerb[] values() { return (HttpVerb[])$VALUES.clone(); } static { GET = new HttpVerb("GET", 0); POST = new HttpVerb("POST", 1); PUT = new HttpVerb("PUT", 2); DELETE = new HttpVerb("DELETE", 3); DOWNLOAD = new HttpVerb("DOWNLOAD", 4); LOGIN = new HttpVerb("LOGIN", 5); $VALUES = (new HttpVerb[] { GET, POST, PUT, DELETE, DOWNLOAD, LOGIN }); } private HttpVerb(String s, int i) { super(s, i); } } public static final android.os.Parcelable.Creator CREATOR = new android.os.Parcelable.Creator() { public Action createFromParcel(Parcel parcel) { return Action.unpackParcel(parcel); } public volatile Object createFromParcel(Parcel parcel) { return createFromParcel(parcel); } public Action[] newArray(int i) { return new WebAction[i]; } public volatile Object[] newArray(int i) { return newArray(i); } }; private static final long serialVersionUID = 32L; List mHeaders; HttpVerb mHttpVerb; List mParameters; String mPayload; String mUrl; public WebAction() { mHeaders = new LinkedList(); mParameters = new LinkedList(); } public void addHeader(String s, String s1) { mHeaders.add(new WebHeader(s, s1)); } public boolean equals(Object obj) { if (obj != null) { if (obj == this) { return true; } if (obj.getClass() == getClass()) { WebAction webaction = (WebAction)obj; return (new EqualsBuilder()).appendSuper(super.equals(obj)).append(mUrl, webaction.getUrl()).append(mHeaders, webaction.getHeaders()).append(mHttpVerb, webaction.getHttpVerb()).append(mPayload, webaction.getPayload()).append(mHeaders, webaction.getHeaders()).isEquals(); } } return false; } public List getHeaders() { return mHeaders; } public HttpVerb getHttpVerb() { return mHttpVerb; } public List getParameters() { return mParameters; } public String getPayload() { return mPayload; } public String getUrl() { return mUrl; } public int hashCode() { return (new HashCodeBuilder(99, 73)).appendSuper(super.hashCode()).append(mUrl).append(mHeaders).append(mHttpVerb).append(mPayload).append(mHeaders).toHashCode(); } public void setHeaders(List list) { mHeaders = list; } public void setHttpVerb(HttpVerb httpverb) { mHttpVerb = httpverb; } public void setParameters(List list) { mParameters = list; } public void setPayload(String s) { mPayload = s; } public void setUrl(String s) { mUrl = s; } }