public class HttpLogSender extends java.lang.Object implements ILogSender
| Constructor and Description |
|---|
HttpLogSender() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(LogSenderSettings logSenderSettings,
ILogMonitor logMonitor)
Configures this sender.
|
void |
send(byte[] message)
Creates connection and sends given data by HTTP request.
|
public void configure(LogSenderSettings logSenderSettings, ILogMonitor logMonitor)
ILogSenderLogController when all parameters are determined.
This method should be idempotent.
Method ILogSender.send(byte[]) cannot be called without foregoing configuration.
configure in interface ILogSenderlogSenderSettings - LogSenderSettings instance.logMonitor - ILogMonitor used for diagnostics and error handling.public void send(byte[] message)
ILogMonitor methods pointing what's the request data and HTTP response result.send in interface ILogSendermessage - Data to send in HTTP request content.java.lang.RuntimeException - On connection error.