Searched refs:conn (Results 1 - 25 of 861) sorted by relevance

1234567891011>>

/forgerock/web-agents-v4/source/
H A Dnet_ops.c81 static void create_cookie_header(am_net_t *conn, const char *token) { argument
89 if (conn->num_headers > 0) {
90 conn->req_headers = strdup(AM_COOKIE_HEADER);
91 if (conn->req_headers != NULL) {
92 for (i = 0; i < conn->num_headers; i++) {
93 if (strcasecmp("Set-Cookie", conn->header_fields[i]) == 0) {
94 char *cookie = conn->header_values[i];
99 am_asprintf(&conn->req_headers, "%s%s; ", conn->req_headers, cookie);
105 char *sep = strrchr(conn
170 send_authcontext_request(am_net_t *conn, const char *realm, char **token) argument
262 send_login_request(am_net_t *conn, char **token, const char *user, const char *password) argument
394 send_attribute_request(am_net_t *conn, char **token, char **pxml, size_t *pxsz, const char *user, const char *realm) argument
482 send_session_request(am_net_t *conn, char **token, const char *user_token, struct am_namevalue **session_list, int notify_enable) argument
609 send_policychange_request(am_net_t *conn, char **token) argument
694 send_policy_request(am_net_t *conn, const char *token, const char *user_token, const char *req_url, const char *scope, const char *cip, const char *pattr, struct am_policy_result **policy_list) argument
807 do_net_connect(am_net_t *conn, struct request_data *req_data, unsigned long instance_id, const char *openam, am_net_options_t *options) argument
829 am_net_t *conn = NULL; local
984 am_net_t *conn = NULL; local
1088 am_net_t *conn = NULL; local
1183 am_net_t *conn = NULL; local
1274 am_net_t *conn = NULL; local
[all...]
/forgerock/openam-v13/openam-tools/openam-installer-utils/src/main/java/org/forgerock/openam/installer/utils/
H A DStatusChecker.java64 HttpURLConnection conn = null;
67 conn = (HttpURLConnection)url.openConnection();
68 conn.setInstanceFollowRedirects(false);
69 conn.connect();
71 int responseCode = conn.getResponseCode();
76 conn.getInputStream()));
86 System.out.println(conn.getResponseMessage());
100 if (conn != null) {
102 conn.disconnect();
/forgerock/openam/openam-tools/openam-installer-utils/src/main/java/org/forgerock/openam/installer/utils/
H A DStatusChecker.java64 HttpURLConnection conn = null;
67 conn = (HttpURLConnection)url.openConnection();
68 conn.setInstanceFollowRedirects(false);
69 conn.connect();
71 int responseCode = conn.getResponseCode();
76 conn.getInputStream()));
86 System.out.println(conn.getResponseMessage());
100 if (conn != null) {
102 conn.disconnect();
/forgerock/opendj-b2.6/tests/unit-tests-testng/src/server/org/opends/server/protocols/internal/
H A DInternalClientConnectionTestCase.java130 * @param conn The internal client connection to use for the test.
133 public void testNextOperationID(InternalClientConnection conn) argument
145 * @param conn The internal client connection to use for the test.
148 public void testNextMessageID(InternalClientConnection conn) argument
160 * @param conn The internal client connection to use for the test.
163 public void testGetConnectionID(InternalClientConnection conn) argument
165 assertTrue(conn.getConnectionID() < 0);
173 * @param conn The internal client connection to use for the test.
176 public void testGetConnectionHandler(InternalClientConnection conn) argument
178 assertEquals(conn
190 testGetProtocol(InternalClientConnection conn) argument
203 testGetClientAddress(InternalClientConnection conn) argument
216 testGetServerAddress(InternalClientConnection conn) argument
229 testGetRemoteAddress(InternalClientConnection conn) argument
242 testGetLocalAddress(InternalClientConnection conn) argument
255 testIsSecure(InternalClientConnection conn) argument
[all...]
H A DInternalSearchOperationTestCase.java75 InternalClientConnection conn =
77 new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(),
97 InternalClientConnection conn =
99 new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(),
123 InternalClientConnection conn =
125 new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(),
148 InternalClientConnection conn =
150 new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(),
171 InternalClientConnection conn =
174 conn
[all...]
/forgerock/opendj2/tests/unit-tests-testng/src/server/org/opends/server/protocols/internal/
H A DInternalClientConnectionTestCase.java129 * @param conn The internal client connection to use for the test.
132 public void testNextOperationID(InternalClientConnection conn) argument
144 * @param conn The internal client connection to use for the test.
147 public void testNextMessageID(InternalClientConnection conn) argument
159 * @param conn The internal client connection to use for the test.
162 public void testGetConnectionID(InternalClientConnection conn) argument
164 assertTrue(conn.getConnectionID() < 0);
172 * @param conn The internal client connection to use for the test.
175 public void testGetConnectionHandler(InternalClientConnection conn) argument
177 assertEquals(conn
189 testGetProtocol(InternalClientConnection conn) argument
202 testGetClientAddress(InternalClientConnection conn) argument
215 testGetServerAddress(InternalClientConnection conn) argument
228 testGetRemoteAddress(InternalClientConnection conn) argument
241 testGetLocalAddress(InternalClientConnection conn) argument
254 testIsSecure(InternalClientConnection conn) argument
[all...]
H A DInternalSearchOperationTestCase.java74 InternalClientConnection conn =
76 new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(),
96 InternalClientConnection conn =
98 new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(),
122 InternalClientConnection conn =
124 new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(),
147 InternalClientConnection conn =
149 new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(),
170 InternalClientConnection conn =
173 conn
[all...]
/forgerock/opendj2.6.2/tests/unit-tests-testng/src/server/org/opends/server/protocols/internal/
H A DInternalClientConnectionTestCase.java130 * @param conn The internal client connection to use for the test.
133 public void testNextOperationID(InternalClientConnection conn) argument
145 * @param conn The internal client connection to use for the test.
148 public void testNextMessageID(InternalClientConnection conn) argument
160 * @param conn The internal client connection to use for the test.
163 public void testGetConnectionID(InternalClientConnection conn) argument
165 assertTrue(conn.getConnectionID() < 0);
173 * @param conn The internal client connection to use for the test.
176 public void testGetConnectionHandler(InternalClientConnection conn) argument
178 assertEquals(conn
190 testGetProtocol(InternalClientConnection conn) argument
203 testGetClientAddress(InternalClientConnection conn) argument
216 testGetServerAddress(InternalClientConnection conn) argument
229 testGetRemoteAddress(InternalClientConnection conn) argument
242 testGetLocalAddress(InternalClientConnection conn) argument
255 testIsSecure(InternalClientConnection conn) argument
[all...]
H A DInternalSearchOperationTestCase.java75 InternalClientConnection conn =
77 new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(),
97 InternalClientConnection conn =
99 new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(),
123 InternalClientConnection conn =
125 new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(),
148 InternalClientConnection conn =
150 new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(),
171 InternalClientConnection conn =
174 conn
[all...]
/forgerock/opendj2-hg/tests/unit-tests-testng/src/server/org/opends/server/protocols/internal/
H A DInternalClientConnectionTestCase.java129 * @param conn The internal client connection to use for the test.
132 public void testNextOperationID(InternalClientConnection conn) argument
144 * @param conn The internal client connection to use for the test.
147 public void testNextMessageID(InternalClientConnection conn) argument
159 * @param conn The internal client connection to use for the test.
162 public void testGetConnectionID(InternalClientConnection conn) argument
164 assertTrue(conn.getConnectionID() < 0);
172 * @param conn The internal client connection to use for the test.
175 public void testGetConnectionHandler(InternalClientConnection conn) argument
177 assertEquals(conn
189 testGetProtocol(InternalClientConnection conn) argument
202 testGetClientAddress(InternalClientConnection conn) argument
215 testGetServerAddress(InternalClientConnection conn) argument
228 testGetRemoteAddress(InternalClientConnection conn) argument
241 testGetLocalAddress(InternalClientConnection conn) argument
254 testIsSecure(InternalClientConnection conn) argument
[all...]
H A DInternalSearchOperationTestCase.java74 InternalClientConnection conn =
76 new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(),
96 InternalClientConnection conn =
98 new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(),
122 InternalClientConnection conn =
124 new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(),
147 InternalClientConnection conn =
149 new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(),
170 InternalClientConnection conn =
173 conn
[all...]
/forgerock/opendj2-jel-hg/tests/unit-tests-testng/src/server/org/opends/server/protocols/internal/
H A DInternalClientConnectionTestCase.java130 * @param conn The internal client connection to use for the test.
133 public void testNextOperationID(InternalClientConnection conn) argument
145 * @param conn The internal client connection to use for the test.
148 public void testNextMessageID(InternalClientConnection conn) argument
160 * @param conn The internal client connection to use for the test.
163 public void testGetConnectionID(InternalClientConnection conn) argument
165 assertTrue(conn.getConnectionID() < 0);
173 * @param conn The internal client connection to use for the test.
176 public void testGetConnectionHandler(InternalClientConnection conn) argument
178 assertEquals(conn
190 testGetProtocol(InternalClientConnection conn) argument
203 testGetClientAddress(InternalClientConnection conn) argument
216 testGetServerAddress(InternalClientConnection conn) argument
229 testGetRemoteAddress(InternalClientConnection conn) argument
242 testGetLocalAddress(InternalClientConnection conn) argument
255 testIsSecure(InternalClientConnection conn) argument
[all...]
H A DInternalSearchOperationTestCase.java75 InternalClientConnection conn =
77 new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(),
97 InternalClientConnection conn =
99 new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(),
123 InternalClientConnection conn =
125 new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(),
148 InternalClientConnection conn =
150 new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(),
171 InternalClientConnection conn =
174 conn
[all...]
/forgerock/openam-v13/openam-cli/openam-cli-impl/src/main/java/com/sun/identity/cli/rest/
H A DRestCommand.java69 HttpURLConnection conn = HttpURLConnectionManager.getConnection(url);
72 conn = HttpURLConnectionManager.getConnection(url);
73 conn.setRequestMethod(requestMethod);
75 conn.setRequestProperty(headersEntry.getKey(), headersEntry.getValue());
77 conn.setRequestProperty("accept", "*/*");
79 conn.setDoOutput(true);
80 OutputStream os = conn.getOutputStream();
86 debug.message("Response code '{}'.", conn.getResponseCode());
88 InputStream inputStream = conn.getErrorStream();
93 return IOUtils.readStream(conn
[all...]
/forgerock/openam/openam-cli/openam-cli-impl/src/main/java/com/sun/identity/cli/rest/
H A DRestCommand.java69 HttpURLConnection conn = HttpURLConnectionManager.getConnection(url);
72 conn = HttpURLConnectionManager.getConnection(url);
73 conn.setRequestMethod(requestMethod);
75 conn.setRequestProperty(headersEntry.getKey(), headersEntry.getValue());
77 conn.setRequestProperty("accept", "*/*");
79 conn.setDoOutput(true);
80 OutputStream os = conn.getOutputStream();
86 debug.message("Response code '{}'.", conn.getResponseCode());
88 InputStream inputStream = conn.getErrorStream();
93 return IOUtils.readStream(conn
[all...]
/forgerock/opendj-b2.6/tests/unit-tests-testng/src/server/org/opends/server/core/
H A DUnbindOperationTestCase.java57 InternalClientConnection conn =
62 new UnbindOperationBasis(conn, InternalClientConnection.nextOperationID(), InternalClientConnection.nextMessageID(),
64 new UnbindOperationBasis(conn, InternalClientConnection.nextOperationID(), InternalClientConnection.nextMessageID(),
97 InternalClientConnection conn =
101 new UnbindOperationBasis(conn, InternalClientConnection.nextOperationID(),
119 InternalClientConnection conn =
126 new UnbindOperationBasis(conn, InternalClientConnection.nextOperationID(),
141 InternalClientConnection conn =
148 new UnbindOperationBasis(conn, InternalClientConnection.nextOperationID(),
/forgerock/opendj2/tests/unit-tests-testng/src/server/org/opends/server/core/
H A DUnbindOperationTestCase.java54 final InternalClientConnection conn = getRootConnection();
57 new UnbindOperationBasis(conn, nextOperationID(), nextMessageID(), null),
58 new UnbindOperationBasis(conn, nextOperationID(), nextMessageID(), new ArrayList<Control>())
84 final InternalClientConnection conn = getRootConnection();
87 conn, nextOperationID(), nextMessageID(), new ArrayList<Control>());
102 final InternalClientConnection conn = getRootConnection();
107 conn, nextOperationID(), nextMessageID(), new ArrayList<Control>());
119 final InternalClientConnection conn = getRootConnection();
124 conn, nextOperationID(), nextMessageID(), new ArrayList<Control>());
/forgerock/opendj2.6.2/tests/unit-tests-testng/src/server/org/opends/server/core/
H A DUnbindOperationTestCase.java57 InternalClientConnection conn =
62 new UnbindOperationBasis(conn, InternalClientConnection.nextOperationID(), InternalClientConnection.nextMessageID(),
64 new UnbindOperationBasis(conn, InternalClientConnection.nextOperationID(), InternalClientConnection.nextMessageID(),
97 InternalClientConnection conn =
101 new UnbindOperationBasis(conn, InternalClientConnection.nextOperationID(),
119 InternalClientConnection conn =
126 new UnbindOperationBasis(conn, InternalClientConnection.nextOperationID(),
141 InternalClientConnection conn =
148 new UnbindOperationBasis(conn, InternalClientConnection.nextOperationID(),
/forgerock/opendj2-hg/tests/unit-tests-testng/src/server/org/opends/server/core/
H A DUnbindOperationTestCase.java54 final InternalClientConnection conn = getRootConnection();
57 new UnbindOperationBasis(conn, nextOperationID(), nextMessageID(), null),
58 new UnbindOperationBasis(conn, nextOperationID(), nextMessageID(), new ArrayList<Control>())
84 final InternalClientConnection conn = getRootConnection();
87 conn, nextOperationID(), nextMessageID(), new ArrayList<Control>());
102 final InternalClientConnection conn = getRootConnection();
107 conn, nextOperationID(), nextMessageID(), new ArrayList<Control>());
119 final InternalClientConnection conn = getRootConnection();
124 conn, nextOperationID(), nextMessageID(), new ArrayList<Control>());
/forgerock/opendj2-jel-hg/tests/unit-tests-testng/src/server/org/opends/server/core/
H A DUnbindOperationTestCase.java57 InternalClientConnection conn =
62 new UnbindOperationBasis(conn, InternalClientConnection.nextOperationID(), InternalClientConnection.nextMessageID(),
64 new UnbindOperationBasis(conn, InternalClientConnection.nextOperationID(), InternalClientConnection.nextMessageID(),
97 InternalClientConnection conn =
101 new UnbindOperationBasis(conn, InternalClientConnection.nextOperationID(),
119 InternalClientConnection conn =
126 new UnbindOperationBasis(conn, InternalClientConnection.nextOperationID(),
141 InternalClientConnection conn =
148 new UnbindOperationBasis(conn, InternalClientConnection.nextOperationID(),
/forgerock/opendj-v3/opendj-server-legacy/src/test/java/org/opends/server/core/
H A DUnbindOperationTestCase.java54 final InternalClientConnection conn = getRootConnection();
57 new UnbindOperationBasis(conn, nextOperationID(), nextMessageID(), null),
58 new UnbindOperationBasis(conn, nextOperationID(), nextMessageID(), new ArrayList<Control>())
84 final InternalClientConnection conn = getRootConnection();
87 conn, nextOperationID(), nextMessageID(), new ArrayList<Control>());
102 final InternalClientConnection conn = getRootConnection();
107 conn, nextOperationID(), nextMessageID(), new ArrayList<Control>());
119 final InternalClientConnection conn = getRootConnection();
124 conn, nextOperationID(), nextMessageID(), new ArrayList<Control>());
/forgerock/openam-v13/openam-core/src/main/java/com/iplanet/services/comm/https/
H A DHandler.java81 HttpsURLConnection conn = new HttpsURLConnection (u, this);
84 conn.setClientCertificate(nickName);
86 return conn;
/forgerock/openam-v13/openam-core/src/main/java/com/iplanet/services/comm/server/
H A DNotificationSender.java65 HttpURLConnection conn = null;
68 conn = HttpURLConnectionManager.getConnection(url);
69 conn.setDoOutput(true);
70 conn.setUseCaches(useCache);
71 conn.setRequestMethod("POST");
72 conn.setRequestProperty("Content-Type", "text/xml;charset=UTF-8");
73 conn.setRequestProperty(TransactionIdHeader.NAME, AuditRequestContext.createSubTransactionIdValue());
77 conn.setRequestProperty("Content-Length", Integer
82 httpOut = conn.getOutputStream();
93 BufferedReader in = new BufferedReader(new InputStreamReader(conn
[all...]
/forgerock/openam/openam-core/src/main/java/com/iplanet/services/comm/server/
H A DNotificationSender.java65 HttpURLConnection conn = null;
68 conn = HttpURLConnectionManager.getConnection(url);
69 conn.setDoOutput(true);
70 conn.setUseCaches(useCache);
71 conn.setRequestMethod("POST");
72 conn.setRequestProperty("Content-Type", "text/xml;charset=UTF-8");
73 conn.setRequestProperty(TransactionIdHeader.NAME, AuditRequestContext.createSubTransactionIdValue());
77 conn.setRequestProperty("Content-Length", Integer
82 httpOut = conn.getOutputStream();
93 BufferedReader in = new BufferedReader(new InputStreamReader(conn
[all...]
/forgerock/opendj-b2.6/src/server/org/opends/server/monitors/
H A DClientConnectionMonitorProvider.java151 for (ClientConnection conn : hdl.getClientConnections())
153 connMap.put(conn.getConnectionID(), conn);
161 for (ClientConnection conn : collection)
163 connMap.put(conn.getConnectionID(), conn);
170 for (ClientConnection conn : connMap.values())
172 builder.add(AttributeValues.create(attrType, conn

Completed in 2250 milliseconds

1234567891011>>