Class BaseHTTPSender.SendMsgRunnable
- java.lang.Object
-
- org.certificateservices.messages.utils.BaseHTTPSender.SendMsgRunnable
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- BaseHTTPSender
protected class BaseHTTPSender.SendMsgRunnable extends java.lang.Object implements java.lang.RunnableRunnable that sends a HTTP call and wait for the response.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSendMsgRunnable(byte[] request, MsgSender.MsgCallback callback)Constructor when sending a byte array output (Usually using POST)protectedSendMsgRunnable(java.lang.String parameters, MsgSender.MsgCallback callback)Constructor when sending data as parameters in the URL (Usually using GET)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()
-
-
-
Constructor Detail
-
SendMsgRunnable
protected SendMsgRunnable(byte[] request, MsgSender.MsgCallback callback)Constructor when sending a byte array output (Usually using POST)- Parameters:
request- the request data to send.callback- the callback to signal result to.
-
SendMsgRunnable
protected SendMsgRunnable(java.lang.String parameters, MsgSender.MsgCallback callback) throws MessageContentExceptionConstructor when sending data as parameters in the URL (Usually using GET)- Parameters:
parameters- the parameters (excluding ?) to use in the request.callback- the callback to signal result to.- Throws:
MessageContentException
-
-