public abstract class AbstractAPIWrapper
extends java.lang.Object
Abstract APIWrapper base class.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BASE_ADDRESS |
static java.lang.String |
ENV_ADDRESS |
| Modifier and Type | Method and Description |
|---|---|
void |
setOutputStream(java.io.PrintStream outputWriter) |
void |
setUpApiCredentials(Credentials credentials) |
void |
setUpApiCredentials(java.lang.String profile)
Setup the API credentials by referencing a profile in the credentials file
|
void |
setUpApiCredentials(java.lang.String apiID,
java.lang.String apiKey)
Deprecated.
This method is deprecated. Please use
setUpApiCredentials(Credentials credentials) or
setUpApiCredentials(String profile) instead.
|
void |
setUpCredentials(java.lang.String username,
java.lang.String password)
Deprecated.
This method is deprecated. Use ID/KEY based authentication
instead.
|
void |
setupMaxRetryCount(int count) |
void |
setUpProxy(java.net.Proxy proxy)
Set up a connection using a proxy represented by an instance of the
java.net.Proxy class.
|
void |
setUpProxy(java.lang.String host,
java.lang.String port)
Set up a connection using a proxy that requires no authentication.
|
void |
setUpProxy(java.lang.String host,
java.lang.String port,
java.lang.String username,
java.lang.String password)
Set up a connection using a proxy that requires authentication.
|
void |
setupTransactionId(java.util.UUID id) |
public static final java.lang.String BASE_ADDRESS
public static final java.lang.String ENV_ADDRESS
public void setUpProxy(java.net.Proxy proxy)
Set up a connection using a proxy represented by an instance of the java.net.Proxy class. This method must be called before calling the APIs.
public void setupTransactionId(java.util.UUID id)
public void setupMaxRetryCount(int count)
public void setUpProxy(java.lang.String host,
java.lang.String port)
Set up a connection using a proxy that requires no authentication. This method must be called before calling the APIs.
A proxy server is a computer that offers a computer network service to allow clients to make indirect network connections to other network services.
host - The proxy IP address.port - The proxy port. (A String that represents an integer value.)public void setUpProxy(java.lang.String host,
java.lang.String port,
java.lang.String username,
java.lang.String password)
Set up a connection using a proxy that requires authentication. This method must be called before calling the APIs.
A proxy server is a computer that offers a computer network service to allow clients to make indirect network connections to other network services. Some proxy servers require a username and password to access their services.
host - The proxy IP address.port - The proxy port. (A String that represents an integer value.)username - The proxy username.password - The proxy password.@Deprecated
public void setUpCredentials(java.lang.String username,
java.lang.String password)
Set up the Veracode login credentials. This method is deprecated. Use ID/KEY based authentication instead.
username - The Veracode username.password - The Veracode password.public void setUpApiCredentials(java.lang.String profile)
profile - - name of the profile. Pass null or empty for using the default profilepublic void setUpApiCredentials(Credentials credentials)
@Deprecated
public void setUpApiCredentials(java.lang.String apiID,
java.lang.String apiKey)
Set up the Veracode API credentials. This method must be called before calling the APIs.
apiID - The Veracode API ID.apiKey - The Veracode API key.InvalidArgumentException - If the specified API ID or API key is null
or invalid.public void setOutputStream(java.io.PrintStream outputWriter)