public class HTMLWrapperServerProxy extends Object
A list of parameters can be established in the constructors:
Some constructors accept only a subset of these parameters. The parameters not specified are set to its default value which is read from the configuration, or set to a default value if not present.
| Constructor and Description |
|---|
HTMLWrapperServerProxy(String host,
int port)
Creates a proxy to a database of a Wrapper Server.
|
HTMLWrapperServerProxy(String host,
int port,
boolean sameConnection)
Creates a proxy to a database of a Wrapper Server.
|
HTMLWrapperServerProxy(String host,
int port,
long queryTimeout,
long chunkTimeout,
long chunkSize)
Creates a proxy to a database of a Wrapper Server.
|
HTMLWrapperServerProxy(String host,
int port,
long queryTimeout,
long chunkTimeout,
long chunkSize,
boolean sameConnection)
Creates a proxy to a database of a Wrapper Server.
|
HTMLWrapperServerProxy(String host,
int port,
String dbName,
String userName,
String password)
Creates a proxy to a database of a Wrapper Server.
|
HTMLWrapperServerProxy(String host,
int port,
String dbName,
String userName,
String password,
boolean sameConnection)
Creates a proxy to a database of a Wrapper Server.
|
HTMLWrapperServerProxy(String host,
int port,
String dbName,
String userName,
String password,
long queryTimeout,
long chunkTimeout,
long chunkSize,
boolean sameConnection)
Creates a proxy to a database of a Wrapper Server.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addExtension(String name,
File file,
boolean replace)
Adds the given extension to the Wrapper Server.
|
void |
addExtension(String name,
String base64content,
boolean replace)
Adds the given extension to the Wrapper Server.
|
void |
changePassword(String newPassword)
Changes the current user password in the Wrapper Server.
|
void |
close()
Closes the common connection if it exists.
|
void |
deleteExtension(String name)
Deletes the given extension of the Wrapper Server.
|
void |
deleteExtensions(List<String> extensions)
Deletes the given extensions of the Wrapper Server.
|
void |
deleteWrapper(String wpName)
Deletes the wrapper in the database.
|
void |
deleteWrappers(List<String> wpNames)
Deletes the wrappers in the database.
|
void |
disableMaintenance(List<String> wrapperNames)
Deprecated.
use disableVerification instead
|
void |
disableVerification(List<String> wrapperNames)
Disables automatic maintenance for the given wrappers.
|
void |
enableMaintenance(List<String> wrapperNames)
Deprecated.
use enableVerification instead
|
void |
enableVerification(List<String> wrapperNames)
Enables automatic maintenance for the given wrappers.
|
Map |
getConfiguration()
Obtains the configuration parameters of the Wrapper Server.
|
Collection |
getDatabaseNames()
Obtains the database names in the Wrapper Server.
|
Collection |
getExtensions()
Obtains all the extensions of the Wrapper Server.
|
HTMLWrapperProxy |
getHTMLWrapper(String wpName)
Obtains a proxy to the wrapper of the database.
|
Collection |
getHTMLWrapperNames()
Returns the names of the HTML wrappers of the database.
|
String |
getVQL()
Returns a VQL with all the wrappers installed in the server.
|
String |
getVQL(boolean includeScanners)
Returns a vql with all the wrappers installed in the server.
|
String |
getVQL(boolean includeScanners,
boolean includeJars)
Returns a vql with all the wrappers installed in the server.
|
String |
getVQL(boolean includeScanners,
boolean includeJars,
boolean includeCustomComponents)
Returns a vql with all the wrappers installed in the server.
|
void |
loadWrapper(String vql)
Loads a vql that contains CREATE WRAPPER ITP and DROP WRAPPER ITP
sentences.
|
void |
setDenodoBrowserOptimization(List<String> wrapperNames,
boolean httpOptimization)
Changes the value of the httpOptimization option for the given wrappers.
|
void |
setParameters(Map parameters)
Modifies the given configuration parameters in the Wrapper Server.
|
void |
setPassThrough(List<String> wrapperNames,
boolean passThrough)
Changes the value of the PASSTHROUGH option for the given wrappers.
|
public HTMLWrapperServerProxy(String host, int port) throws ITPilotClientException
host - host where the Wrapper Server is launchedport - port where the Wrapper Server is lanunchedITPilotClientException - if an error occurs.public HTMLWrapperServerProxy(String host, int port, boolean sameConnection) throws ITPilotClientException
host - host where the Wrapper Server is launched.port - port where the Wrapper Server is lanunched.sameConnection - true if the proxy uses a common connection for all
the operations.ITPilotClientException - if an error occurs.public HTMLWrapperServerProxy(String host, int port, long queryTimeout, long chunkTimeout, long chunkSize) throws ITPilotClientException
host - host where the Wrapper Server is launched.port - port where the Wrapper Server is lanunched.queryTimeout - maximum time to wait by a query result.chunkTimeout - maximum time to wait between two consecutive results
of VDP.chunkSize - number of blocks in each chunk.ITPilotClientException - if an error occurs.public HTMLWrapperServerProxy(String host, int port, long queryTimeout, long chunkTimeout, long chunkSize, boolean sameConnection) throws ITPilotClientException
host - host where the Wrapper Server is launched.port - port where the Wrapper Server is lanunched.queryTimeout - maximum time to wait by a query result.chunkTimeout - maximum time to wait between two consecutive results
of VDP.chunkSize - number of blocks in each chunk.sameConnection - true if the proxy uses a common connection
for all the operations.ITPilotClientException - if an error occurs.public HTMLWrapperServerProxy(String host, int port, String dbName, String userName, String password) throws ITPilotClientException
host - host where the Wrapper Server is launched.port - port where the Wrapper Server is lanunched.dbName - the database name to connect to.userName - the database user name.password - the database user password.ITPilotClientException - if an error occurs.public HTMLWrapperServerProxy(String host, int port, String dbName, String userName, String password, boolean sameConnection) throws ITPilotClientException
host - host where the wrapper server is launched.port - port where the wrapper server is lanunched.dbName - the database name to connect to.userName - the database user name.password - the database user password.sameConnection - true if the proxy uses a common connection
for all the operations.ITPilotClientException - if an error occurs.public HTMLWrapperServerProxy(String host, int port, String dbName, String userName, String password, long queryTimeout, long chunkTimeout, long chunkSize, boolean sameConnection) throws ITPilotClientException
host - host where the Wrapper Server is launched.port - port where the Wrapper Server is lanunched.dbName - the database name to connect to.userName - the database user name.password - the database user password.queryTimeout - maximum time to wait by a query resultchunkTimeout - maximum time to wait between two consecutive results
of the VDP.chunkSize - number of blocks in each chunk.sameConnection - true if the proxy uses a common connection
for all the operations.ITPilotClientException - if an error occurs.public String getVQL() throws ITPilotClientException
ITPilotClientExceptionpublic String getVQL(boolean includeScanners) throws ITPilotClientException
includeScanners - true if the vql includes the scanners used by the
wrappers.ITPilotClientException - if an error occurs.public String getVQL(boolean includeScanners, boolean includeJars) throws ITPilotClientException
includeScanners - true if the vql includes the scanners used by the
wrappers.includeJars - true if the vql includes the extensions used by the
wrappers.ITPilotClientException - if an error occurs.public String getVQL(boolean includeScanners, boolean includeJars, boolean includeCustomComponents) throws ITPilotClientException
includeScanners - true if the vql includes the scanners used by the
wrappers.includeJars - true if the vql includes the extensions used by the
wrappers.includeCustomComponents - true if the vql includes the custom
components used by the wrappers.ITPilotClientException - if an error occurs.public Collection getHTMLWrapperNames() throws ITPilotClientException
ITPilotClientException - if an error occurs.public HTMLWrapperProxy getHTMLWrapper(String wpName) throws ITPilotClientException
wpName - the name of the wrapper.ITPilotClientException - if the wrapper does not exist or an error
occurs.public void deleteWrapper(String wpName) throws ITPilotClientException
wpName - the name of the wrapper to delete.ITPilotClientException - if the wrapper does not exist or an error
occurs.public void deleteWrappers(List<String> wpNames) throws ITPilotClientException
wpNames - the list of the wrappers names to delete.ITPilotClientException - if the wrappers do not exist or an error
occurs.public void enableMaintenance(List<String> wrapperNames) throws ITPilotClientException
wrapperNames - the list of wrapper names.ITPilotClientException - if the wrappers do not exist or an error
occurs.public void enableVerification(List<String> wrapperNames) throws ITPilotClientException
wrapperNames - the list of wrapper names.ITPilotClientException - if the wrappers do not exist or an error
occurs.public void disableMaintenance(List<String> wrapperNames) throws ITPilotClientException
wrapperNames - the list of wrapper names.ITPilotClientException - if the wrappers dos not exist or an error
occurs.public void disableVerification(List<String> wrapperNames) throws ITPilotClientException
wrapperNames - the list of wrapper names.ITPilotClientException - if the wrappers dos not exist or an error
occurs.public void setDenodoBrowserOptimization(List<String> wrapperNames, boolean httpOptimization) throws ITPilotClientException
wrapperNames - the list of wrapper names.httpOptimization - if true, the wrapper will use the optimization data
in denodo browser based sequences.ITPilotClientException - if an error occurs.public void setPassThrough(List<String> wrapperNames, boolean passThrough) throws ITPilotClientException
wrapperNames - the list of wrapper names.passThrough - if true, the wrapper will use passthrough credentials.ITPilotClientException - if an error occurs.public void changePassword(String newPassword) throws ITPilotClientException
newPassword - the new password.ITPilotClientException - if an error occurs.public Collection getDatabaseNames() throws ITPilotClientException
ITPilotClientException - if an error occurs.public Map getConfiguration() throws ITPilotClientException
ITPilotClientException - if an error occurs.public void setParameters(Map parameters) throws ITPilotClientException
parameters - the parameters to modify. The keys of the Map are
parameter names and the values are the new values for the
parameters.ITPilotClientException - if an error occurs.public void loadWrapper(String vql) throws ITPilotClientException
vql - String that contains the vql sentences to load in the server.ITPilotClientExceptionpublic void addExtension(String name, String base64content, boolean replace) throws ITPilotClientException
name - the extension name to be added.base64content - the extension content encoded in Base64.replace - true if the extension (if already exists) should be
replaced with this new one.ITPilotClientException - if an error occurs.public void addExtension(String name, File file, boolean replace) throws ITPilotClientException, IOException
name - the extension name to be added.file - the file containing the extension.replace - true if the extension (if already exists) should be
replaced with this new one.ITPilotClientException - if an error occurs.IOExceptionpublic void deleteExtension(String name) throws ITPilotClientException
name - the extension name to be deleted.ITPilotClientException - if an error occurs.public void deleteExtensions(List<String> extensions) throws ITPilotClientException
extensions - the list of the extension names to delete.ITPilotClientException - if an error occurs.public Collection getExtensions() throws ITPilotClientException
JarInfoVO.ITPilotClientException - if an error occurs.public void close()
throws ITPilotClientException
ITPilotClientException - if an error occurs.Copyright © 2024 Denodo Technologies. All rights reserved.