Sha256: bfc48c3d4b868ca29c1e044491cb42e375548bf1ea614a3e88ac0b52ca6a121c
Contents?: true
Size: 778 Bytes
Versions: 4
Compression:
Stored size: 778 Bytes
Contents
package com.rho.net; public class NetResponse { private String m_strData = null; private int m_nRespCode; public NetResponse( String strData ){ m_strData = strData; m_nRespCode = -1; } public NetResponse( String strData, int nRespCode ){ m_strData = strData; m_nRespCode = nRespCode; } public String getCharData() { return m_strData; } public void setCharData(String strData) { m_strData = strData; } public int getDataSize() { return m_strData != null ? m_strData.length() : 0; } public int getRespCode() { return m_nRespCode; } public boolean isOK() { return m_nRespCode == IHttpConnection.HTTP_OK; } public boolean isUnathorized() { return m_nRespCode == IHttpConnection.HTTP_UNAUTHORIZED; } }
Version data entries
4 entries across 4 versions & 1 rubygems