com.filenet.download.api
Class ServerConnectionData
- java.lang.Object
-
- com.filenet.download.api.ServerConnectionData
-
public class ServerConnectionData extends java.lang.ObjectRepresents the metadata required to connect to the Client Download Servlet. Use the factory methodsgetHttpConnectionData()orgetHttpsConnectionData()to create instances of this class. AServerConnectionDataobject is used by methods that connect to the Client Download Servlet, such asServerVersion.fetchInstance().
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static ServerConnectionDatagetHttpConnectionData(java.lang.String serverName, java.lang.String port)Factory method used to create an instance of this class to be used for connecting to the Client Download Servlet via the HTTP protocol.static ServerConnectionDatagetHttpsConnectionData(java.lang.String serverName, java.lang.String port, boolean validateServerCert)Factory method used to create an instance of this class to be used for connecting to the Client Download Servlet via the HTTPS protocol, that is, using SSL.java.lang.StringgetPort()Returns the port number used by an instance ofServerConnectionData.ProtocolgetProtocol()Returns the protocol used by an instance ofServerConnectionData.java.lang.StringgetServerName()Returns the server name used by an instance ofServerConnectionData.booleangetValidateCertificate()Returns a value that indicates whether this instance ofServerConnectionDatawill enforce server certificate validation.
-
-
-
Method Detail
-
getHttpConnectionData
public static ServerConnectionData getHttpConnectionData(java.lang.String serverName, java.lang.String port)
Factory method used to create an instance of this class to be used for connecting to the Client Download Servlet via the HTTP protocol.- Parameters:
serverName- AStringthat represents the name of the server on which the Client Download Servlet is installed.port- AStringthat specifies the HTTP port number for connecting to the Client Download Servlet.
-
getHttpsConnectionData
public static ServerConnectionData getHttpsConnectionData(java.lang.String serverName, java.lang.String port, boolean validateServerCert)
Factory method used to create an instance of this class to be used for connecting to the Client Download Servlet via the HTTPS protocol, that is, using SSL.- Parameters:
serverName- AStringthat represents the name of the server on which the Client Download Servlet is installed.port- AStringthat specifies the HTTPS port for connecting to the Client Download Servlet.validateServerCert- Abooleanargument that specifies whether or not the Client Download Java API will perform server certificate validation. Usetrueto enforce server certificate validation. Otherwise, usefalseto bypass server certificate validation.If the server certificate is not stored in the client's JVM keystore database, then subsequent calls to the servlet will result in a Java runtime exception.
-
getProtocol
public Protocol getProtocol()
Returns the protocol used by an instance ofServerConnectionData.- Returns:
- A
Protocolenum representing either the HTTP or HTTPS protocol.
-
getPort
public java.lang.String getPort()
Returns the port number used by an instance ofServerConnectionData.- Returns:
- A
Stringrepresenting the HTTP or HTTPS port number.
-
getServerName
public java.lang.String getServerName()
Returns the server name used by an instance ofServerConnectionData.- Returns:
- A
Stringwith the server name.
-
getValidateCertificate
public boolean getValidateCertificate()
Returns a value that indicates whether this instance ofServerConnectionDatawill enforce server certificate validation. The value returned by this method is only applicable when using the HTTPS protocol.- Returns:
- A
booleanthat, when true, indicates that server certificate validation will be enforced, and, when false, indicates that server certificate validation will not be performed.
-
-