// 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 org.apache.oltu.oauth2.client.response; import java.util.HashMap; import java.util.Map; import org.apache.oltu.oauth2.client.validator.OAuthClientValidator; import org.apache.oltu.oauth2.common.exception.OAuthProblemException; public abstract class OAuthClientResponse { protected String body; protected String contentType; protected Map parameters; protected int responseCode; protected OAuthClientValidator validator; public OAuthClientResponse() { parameters = new HashMap(); } public String getParam(String s) { s = ((String) (parameters.get(s))); if (s == null) { return null; } else { return String.valueOf(s); } } protected void init(String s, String s1, int i) throws OAuthProblemException { setBody(s); setContentType(s1); setResponseCode(i); validate(); } protected abstract void setBody(String s) throws OAuthProblemException; protected abstract void setContentType(String s); protected abstract void setResponseCode(int i); protected void validate() throws OAuthProblemException { validator.validate(this); } }