Package ru.clinicainfo.protocol.register
Class CustomRegisterRequest
- java.lang.Object
-
- ru.clinicainfo.extended.CustomListViewDataSource
-
- ru.clinicainfo.protocol.CustomNetworkRequest
-
- ru.clinicainfo.protocol.register.CustomRegisterRequest
-
- Direct Known Subclasses:
RegisterCompleteRequest,RegisterInitRequest
public abstract class CustomRegisterRequest extends CustomNetworkRequest
Запрос на регистрацию
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classCustomRegisterRequest.RequestStatusInfoРезультат запроса-
Nested classes/interfaces inherited from class ru.clinicainfo.protocol.CustomNetworkRequest
CustomNetworkRequest.NoConnectionException, CustomNetworkRequest.ServiceFailureException, CustomNetworkRequest.ServiceParserException, CustomNetworkRequest.ServiceUnavailableException
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringREQUEST_FAILUREstatic java.lang.StringREQUEST_SUCCESSjava.text.SimpleDateFormatRequestDateFormatjava.text.SimpleDateFormatRequestDateTimeFormat-
Fields inherited from class ru.clinicainfo.protocol.CustomNetworkRequest
REQUEST_HTTP_BAD_REQUEST, REQUEST_HTTP_CONFLICT, REQUEST_HTTP_GONE, REQUEST_HTTP_SUCCESS, REQUEST_HTTP_UNAUTHORIZED
-
-
Constructor Summary
Constructors Constructor Description CustomRegisterRequest()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidexecuteRequest(java.lang.String urlPath)java.lang.StringGetErrorText()booleanGetIsSuccess()CustomRegisterRequest.RequestStatusInfogetStatusInfo()static java.lang.BooleangetSuccessFromJson(java.lang.String json)-
Methods inherited from class ru.clinicainfo.protocol.CustomNetworkRequest
getError, getExceptionMessage, getFailureMessage, getMessageFromDataJson, getMessageFromDataJson, getString
-
-
-
-
Field Detail
-
REQUEST_SUCCESS
public static final java.lang.String REQUEST_SUCCESS
- See Also:
- Constant Field Values
-
REQUEST_FAILURE
public static final java.lang.String REQUEST_FAILURE
- See Also:
- Constant Field Values
-
RequestDateTimeFormat
public final java.text.SimpleDateFormat RequestDateTimeFormat
-
RequestDateFormat
public final java.text.SimpleDateFormat RequestDateFormat
-
-
Method Detail
-
getStatusInfo
public CustomRegisterRequest.RequestStatusInfo getStatusInfo()
-
GetIsSuccess
public boolean GetIsSuccess()
-
GetErrorText
public java.lang.String GetErrorText()
-
getSuccessFromJson
@Nullable public static java.lang.Boolean getSuccessFromJson(java.lang.String json) throws org.json.JSONException- Throws:
org.json.JSONException
-
executeRequest
public abstract void executeRequest(java.lang.String urlPath) throws java.io.IOException, CustomNetworkRequest.ServiceUnavailableException, CustomNetworkRequest.ServiceFailureException, java.text.ParseException, org.json.JSONException, java.security.NoSuchAlgorithmException- Throws:
java.io.IOExceptionCustomNetworkRequest.ServiceUnavailableExceptionCustomNetworkRequest.ServiceFailureExceptionjava.text.ParseExceptionorg.json.JSONExceptionjava.security.NoSuchAlgorithmException
-
-