public class HttpSender
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
HttpSender.CnxState
States of an HTTP Connection, it corresponds to an automata suc as:
UNSTARTED : Initial state, the connection is yet to be established with the HTTP server, cannot yet be used. |
Modifier and Type | Field and Description |
---|---|
static int |
CLOSE_SESSION_TIMEOUT_DEFAULT |
static java.lang.String |
CLOSE_SESSION_TIMEOUT_PROP |
static org.apache.log4j.Logger |
logger |
Constructor and Description |
---|
HttpSender(java.net.URI uri,
java.lang.String connectorName,
java.lang.String login,
java.lang.String password,
int closeTimeoutSec) |
Modifier and Type | Method and Description |
---|---|
boolean |
isShuttingDown() |
void |
shutdown(long timeout,
java.util.concurrent.TimeUnit unit) |
CloseableDataOutput |
startSendData(PAPI_COMMAND papiCmd) |
public static final java.lang.String CLOSE_SESSION_TIMEOUT_PROP
public static final int CLOSE_SESSION_TIMEOUT_DEFAULT
public static final org.apache.log4j.Logger logger
public HttpSender(java.net.URI uri, java.lang.String connectorName, java.lang.String login, java.lang.String password, int closeTimeoutSec) throws java.io.IOException
java.io.IOException
public CloseableDataOutput startSendData(PAPI_COMMAND papiCmd) throws PushAPIException
PushAPIException
public boolean isShuttingDown()
public void shutdown(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
java.lang.InterruptedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.