// Path: src/com/jskaleel/fte/common/TextUtils.java
// public class TextUtils {
// 
// 	public static final String encodeToBase64(CharSequence content){
// 		byte[] bytes = Base64.encode(content.toString().getBytes(), Base64.DEFAULT);
// 		return new String(bytes);		
// 	}
// 	
// 	public static final String decodeBase64(String base64String){
// 		try {
// 			return new String(Base64.decode(base64String, Base64.DEFAULT));
// 		} catch (Exception e) {
// 			e.printStackTrace();
// 		}
// 		
// 		return base64String;
// 	}
// 	
// 	public static boolean isNullOrEmpty(String value){
// 		return value == null || value.trim().equals("");
// 	}
// 	
// 	public static boolean isNullOrEmpty(CharSequence value){
// 		return value == null || value.toString().equals("");
// 	}
// 	
// 	public static boolean isEmpty(TextView txt){
// 		String text = txt.getText().toString().trim();
// 		return text.length() <= 0;
// 	}
// 	
// }


import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import org.apache.http.HttpStatus;
import org.apache.http.message.BasicNameValuePair;
import org.json.JSONException;
import org.json.JSONObject;
import com.jskaleel.fte.common.TextUtils;

				}
			} catch (JSONException e) {
				e.printStackTrace();
			}
		}

		return isErrorcode;
	}

	public static UrlResponse getResponse(int responseCode, String content){
		UrlResponse response = new UrlResponse();		
		response.setResposeCode(responseCode);

		String errorMsg = HttpUtils.getErrorMsg(content);

		if(responseCode == HttpStatus.SC_CREATED || responseCode == HttpStatus.SC_OK || responseCode == HttpStatus.SC_MOVED_TEMPORARILY){
			if(HttpUtils.isError(content)){
				response.setErrorMsg(errorMsg);
				response.setErrorCode(getErrorCode(content));
			}
			else{
				response.setContent(content);
			}				
		}
		else {				
			response.setErrorMsg(errorMsg);
		}

		try {
			int errorCode = -1;

// Path: src/com/jskaleel/fte/common/TextUtils.java
// public class TextUtils {
// 
// 	public static final String encodeToBase64(CharSequence content){
// 		byte[] bytes = Base64.encode(content.toString().getBytes(), Base64.DEFAULT);
// 		return new String(bytes);		
// 	}
// 	
// 	public static final String decodeBase64(String base64String){
// 		try {
// 			return new String(Base64.decode(base64String, Base64.DEFAULT));
// 		} catch (Exception e) {
// 			e.printStackTrace();
// 		}
// 		
// 		return base64String;
// 	}
// 	
// 	public static boolean isNullOrEmpty(String value){
// 		return value == null || value.trim().equals("");
// 	}
// 	
// 	public static boolean isNullOrEmpty(CharSequence value){
// 		return value == null || value.toString().equals("");
// 	}
// 	
// 	public static boolean isEmpty(TextView txt){
// 		String text = txt.getText().toString().trim();
// 		return text.length() <= 0;
// 	}
// 	
// }


// Path: src/com/jskaleel/http/HttpUtils.java
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import org.apache.http.HttpStatus;
import org.apache.http.message.BasicNameValuePair;
import org.json.JSONException;
import org.json.JSONObject;
import com.jskaleel.fte.common.TextUtils;

				}
			} catch (JSONException e) {
				e.printStackTrace();
			}
		}

		return isErrorcode;
	}

	public static UrlResponse getResponse(int responseCode, String content){
		UrlResponse response = new UrlResponse();		
		response.setResposeCode(responseCode);

		String errorMsg = HttpUtils.getErrorMsg(content);

		if(responseCode == HttpStatus.SC_CREATED || responseCode == HttpStatus.SC_OK || responseCode == HttpStatus.SC_MOVED_TEMPORARILY){
			if(HttpUtils.isError(content)){
				response.setErrorMsg(errorMsg);
				response.setErrorCode(getErrorCode(content));
			}
			else{
				response.setContent(content);
			}				
		}
		else {				
			response.setErrorMsg(errorMsg);
		}

		try {
			int errorCode = -1;

			if(!TextUtils.isNullOrEmpty(content)){
