summaryrefslogtreecommitdiffstats
path: root/base/common/src/com/netscape/certsrv/apps
diff options
context:
space:
mode:
authorChristina Fu <cfu@redhat.com>2014-03-03 15:52:55 -0800
committerChristina Fu <cfu@redhat.com>2014-03-06 19:33:35 -0800
commit61ec5553e416733996be05fda16983d32252000c (patch)
tree61f7a81cec53df149113d4c73cd1c1836904cb35 /base/common/src/com/netscape/certsrv/apps
parent35fcdc2ca9c5ef42ccdddcbfdf484c4f66a720fc (diff)
downloadpki-61ec5553e416733996be05fda16983d32252000c.tar.gz
pki-61ec5553e416733996be05fda16983d32252000c.tar.xz
pki-61ec5553e416733996be05fda16983d32252000c.zip
trac ticket #862 - TPS rewrite: provide connector service for JAVA-based TPS subsystem
Diffstat (limited to 'base/common/src/com/netscape/certsrv/apps')
-rw-r--r--base/common/src/com/netscape/certsrv/apps/CMS.java28
-rw-r--r--base/common/src/com/netscape/certsrv/apps/ICMSEngine.java24
2 files changed, 52 insertions, 0 deletions
diff --git a/base/common/src/com/netscape/certsrv/apps/CMS.java b/base/common/src/com/netscape/certsrv/apps/CMS.java
index fbcf65ac0..405e99ecf 100644
--- a/base/common/src/com/netscape/certsrv/apps/CMS.java
+++ b/base/common/src/com/netscape/certsrv/apps/CMS.java
@@ -850,6 +850,19 @@ public final class CMS {
*
* @param authority remote authority
* @param factory socket factory
+ * @param op operation to determine receiving servlet (multi-uri support)
+ * @return http connection to the remote authority
+ */
+ public static IHttpConnection getHttpConnection(IRemoteAuthority authority,
+ ISocketFactory factory, String op) {
+ return _engine.getHttpConnection(authority, factory, op);
+ }
+
+ /**
+ * Retrieves the HTTP Connection for use with connector.
+ *
+ * @param authority remote authority
+ * @param factory socket factory
* @param timeout return error if connection cannot be established within
* the timeout period
* @return http connection to the remote authority
@@ -860,6 +873,21 @@ public final class CMS {
}
/**
+ * Retrieves the HTTP Connection for use with connector.
+ *
+ * @param authority remote authority
+ * @param factory socket factory
+ * @param timeout return error if connection cannot be established within
+ * the timeout period
+ * @param op operation to determine receiving servlet (multi-uri support)
+ * @return http connection to the remote authority
+ */
+ public static IHttpConnection getHttpConnection(IRemoteAuthority authority,
+ ISocketFactory factory, int timeout, String op) {
+ return _engine.getHttpConnection(authority, factory, timeout, op);
+ }
+
+ /**
* Retrieves the request sender for use with connector.
*
* @param authority local authority
diff --git a/base/common/src/com/netscape/certsrv/apps/ICMSEngine.java b/base/common/src/com/netscape/certsrv/apps/ICMSEngine.java
index 74fa09003..fb3881ed3 100644
--- a/base/common/src/com/netscape/certsrv/apps/ICMSEngine.java
+++ b/base/common/src/com/netscape/certsrv/apps/ICMSEngine.java
@@ -1029,6 +1029,17 @@ public interface ICMSEngine extends ISubsystem {
*
* @param authority remote authority
* @param factory socket factory
+ * @param op operation to determine receiving servlet (multi-uri support)
+ * @return http connection to the remote authority
+ */
+ public IHttpConnection getHttpConnection(IRemoteAuthority authority,
+ ISocketFactory factory, String op);
+
+ /**
+ * Retrieves the HTTP Connection for use with connector.
+ *
+ * @param authority remote authority
+ * @param factory socket factory
* @param timeout return error if connection cannot be established within
* the timeout period
* @return http connection to the remote authority
@@ -1037,6 +1048,19 @@ public interface ICMSEngine extends ISubsystem {
ISocketFactory factory, int timeout);
/**
+ * Retrieves the HTTP Connection for use with connector.
+ *
+ * @param authority remote authority
+ * @param factory socket factory
+ * @param timeout return error if connection cannot be established within
+ * the timeout period
+ * @param op operation to determine receiving servlet (multi-uri support)
+ * @return http connection to the remote authority
+ */
+ public IHttpConnection getHttpConnection(IRemoteAuthority authority,
+ ISocketFactory factory, int timeout, String op);
+
+ /**
* Retrieves the request sender for use with connector.
*
* @param authority local authority