Created
September 7, 2014 07:08
-
-
Save ejcer/f2417db1cfe14bd77e81 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.cleverua.android.post; | |
public class PostParameter<T> { | |
private static final String DEFAULT_CONTENT_TYPE = "application/octet-stream"; | |
private String paramName; | |
private String contentType; | |
private T value; | |
public PostParameter(String paramName, T value) { | |
this(paramName, value, DEFAULT_CONTENT_TYPE); | |
} | |
public PostParameter(String paramName, T value, String contentType) { | |
this.paramName = paramName; | |
this.value = value; | |
this.contentType = contentType; | |
} | |
public String getParamName() { | |
return paramName; | |
} | |
public T getValue() { | |
return value; | |
} | |
protected void setValue(T value) { | |
this.value = value; | |
} | |
public String getContentType() { | |
return contentType; | |
} | |
public void setContentType(String contentType) { | |
this.contentType = contentType; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment