package org.oauth2.client4j.http.response; public abstract class OAuthResponse implements Response { protected String body; protected String contentType; protected String characterEncoding; protected int responseCode; public void init(String body, String contentType,String characterEncoding, int responseCode){ this.setBody(body); this.setContentType(contentType); this.setCharacterEncoding(characterEncoding); this.setResponseCode(responseCode); } /** * @return the body */ public String getBody() { return body; } public void setBody(String body) { this.body = body; } /** * @return the contentType */ public String getContentType() { return contentType; } /** * @param contentType * the contentType to set */ public void setContentType(String contentType) { this.contentType = contentType; } /** * @return the characterEncoding */ public String getCharacterEncoding() { return characterEncoding; } /** * @param characterEncoding * the characterEncoding to set */ public void setCharacterEncoding(String characterEncoding) { this.characterEncoding = characterEncoding; } /** * @return the responseCode */ public int getResponseCode() { return responseCode; } /** * @param responseCode * the responseCode to set */ public void setResponseCode(int responseCode) { this.responseCode = responseCode; } }