Searched refs:connection (Results 76 - 100 of 652) sorted by relevance

1234567891011>>

/forgerock/opendj-v3/opendj-server-legacy/src/main/java/org/opends/server/protocols/http/
H A DHTTPStatsProbe.java34 * written to the HTTP connection. We are using
63 public void onDataSentEvent(Connection connection, Buffer buffer) argument
70 public void onDataReceivedEvent(Connection connection, Buffer buffer) argument
/forgerock/openidm-v4/openidm-zip/src/main/resources/samples/scriptedrest2dj/tools/
H A DDeleteScript.groovy36 def httpClient = connection as HttpClient
37 def connection = customizedConnection as RESTClient
47 connection.delete(path: '/users/' + uid.uidValue);
50 connection.delete(path: '/groups/' + uid.uidValue);
H A DTestScript.groovy36 def httpClient = connection as HttpClient
37 def connection = customizedConnection as RESTClient
/forgerock/openam/openam-console/src/main/java/com/sun/identity/console/base/model/
H A DAMSystemConfig.java107 HttpURLConnection connection = null;
112 connection = HttpURLConnectionManager.getConnection(url);
113 int responseCode = connection.getResponseCode();
115 version = getContent(connection);
124 if (connection != null) {
125 connection.disconnect();
131 private static String getContent(HttpURLConnection connection) { argument
135 in_buf = connection.getInputStream();
/forgerock/authenticator-ios-v2/unit-tests/
H A DFRAFMDatabaseConnectionHelperTest.m93 FMDatabase *connection = [database getConnectionWithError:nil];
95 XCTAssertNil(connection);
103 FMDatabase *connection = [database getConnectionWithError:nil];
105 XCTAssertNil(connection);
114 FMDatabase *connection = [database getConnectionWithError:nil];
116 XCTAssertNil(connection);
127 FMDatabase *connection = [database getConnectionWithError:&error];
129 XCTAssertNil(connection);
142 FMDatabase *connection = [database getConnectionWithError:nil];
144 XCTAssertNil(connection);
[all...]
/forgerock/opendj-b2.6/src/server/org/opends/server/core/networkgroups/
H A DBindDNConnectionCriteria.java44 * A connection criteria which matches connections authenticated using a
51 * Creates a new bind DN connection criteria using the provided DN
56 * @return The new bind DN connection criteria.
68 * Creates a new bind DN connection criteria using the provided DN
73 * @return The new bind DN connection criteria.
109 public boolean matches(ClientConnection connection) argument
111 DN dn = connection.getAuthenticationInfo().getAuthenticationDN();
112 return willMatchAfterBind(connection, dn, null, false);
120 public boolean willMatchAfterBind(ClientConnection connection, argument
/forgerock/opendj2/src/server/org/opends/server/core/networkgroups/
H A DBindDNConnectionCriteria.java43 * A connection criteria which matches connections authenticated using a
50 * Creates a new bind DN connection criteria using the provided DN
55 * @return The new bind DN connection criteria.
67 * Creates a new bind DN connection criteria using the provided DN
72 * @return The new bind DN connection criteria.
108 public boolean matches(ClientConnection connection) argument
110 DN dn = connection.getAuthenticationInfo().getAuthenticationDN();
111 return willMatchAfterBind(connection, dn, null, false);
119 public boolean willMatchAfterBind(ClientConnection connection, argument
/forgerock/opendj2.6.2/src/server/org/opends/server/core/networkgroups/
H A DBindDNConnectionCriteria.java44 * A connection criteria which matches connections authenticated using a
51 * Creates a new bind DN connection criteria using the provided DN
56 * @return The new bind DN connection criteria.
68 * Creates a new bind DN connection criteria using the provided DN
73 * @return The new bind DN connection criteria.
109 public boolean matches(ClientConnection connection) argument
111 DN dn = connection.getAuthenticationInfo().getAuthenticationDN();
112 return willMatchAfterBind(connection, dn, null, false);
120 public boolean willMatchAfterBind(ClientConnection connection, argument
/forgerock/opendj2-jel-hg/src/server/org/opends/server/core/networkgroups/
H A DBindDNConnectionCriteria.java44 * A connection criteria which matches connections authenticated using a
51 * Creates a new bind DN connection criteria using the provided DN
56 * @return The new bind DN connection criteria.
68 * Creates a new bind DN connection criteria using the provided DN
73 * @return The new bind DN connection criteria.
109 public boolean matches(ClientConnection connection) argument
111 DN dn = connection.getAuthenticationInfo().getAuthenticationDN();
112 return willMatchAfterBind(connection, dn, null, false);
120 public boolean willMatchAfterBind(ClientConnection connection, argument
/forgerock/opendj2-hg/src/server/org/opends/server/core/networkgroups/
H A DBindDNConnectionCriteria.java43 * A connection criteria which matches connections authenticated using a
50 * Creates a new bind DN connection criteria using the provided DN
55 * @return The new bind DN connection criteria.
67 * Creates a new bind DN connection criteria using the provided DN
72 * @return The new bind DN connection criteria.
108 public boolean matches(ClientConnection connection) argument
110 DN dn = connection.getAuthenticationInfo().getAuthenticationDN();
111 return willMatchAfterBind(connection, dn, null, false);
119 public boolean willMatchAfterBind(ClientConnection connection, argument
/forgerock/openam-v13/openam-core/src/main/java/com/sun/identity/setup/
H A DAMSetupUtils.java192 HttpURLConnection connection = null;
194 connection = openConnection(serverUrl + "/getServerInfo.jsp");
195 writeToConnection(connection, "IDToken1=" + URLEncoder.encode(userId, "UTF-8")
198 return BootstrapData.queryStringToMap(readFromConnection(connection).replace("\n", ""));
211 if (connection != null) {
213 status = connection.getResponseCode();
224 if (connection != null) {
225 connection.disconnect();
232 HttpURLConnection connection = (HttpURLConnection) url.openConnection();
234 HttpsURLConnection sslConnection = (HttpsURLConnection) connection;
244 writeToConnection(URLConnection connection, String data) argument
256 readFromConnection(URLConnection connection) argument
[all...]
/forgerock/openam-v13/openam-core/src/main/java/org/forgerock/openam/sm/datalayer/api/
H A DConnectionFactory.java30 * Creates a connection asynchronously. The returned promise can be used to obtain and act on the eventually
32 * @return A promise that will be resolved with a connection.
37 * Create a connection synchronously.
38 * @return The created connection.
48 * Checks if a (possibly null) connection is valid for use.
50 boolean isValid(T connection); argument
/forgerock/openam-v13/openam-core/src/main/java/org/forgerock/openam/sm/datalayer/impl/tasks/
H A DUpdateTask.java49 * @param connection Non null Connection.
50 * @param adapter Non null for connection-coupled operations.
54 public void performTask(Object connection, TokenStorageAdapter adapter) throws DataLayerException { argument
55 Token previous = adapter.read(connection, token.getTokenId());
57 adapter.create(connection, token);
59 adapter.update(connection, previous, token);
/forgerock/openidm-v4/openidm-repo-jdbc/src/main/java/org/forgerock/openidm/repo/jdbc/
H A DSQLExceptionHandler.java49 * @param connection where the failure occured, used for additional context
52 boolean isRetryable(SQLException ex, Connection connection); argument
H A DTableHandler.java55 * @param connection
63 String localId, Connection connection)
76 * @param connection
85 Map<String, Object> obj, Connection connection)
102 * @param connection
113 String rev, Map<String, Object> obj, Connection connection)
123 * @param connection
133 String rev, Connection connection)
148 * @param connection
157 public List<Map<String, Object>> query(String type, Map<String, Object> params, Connection connection) argument
62 read(String fullId, String type, String localId, Connection connection) argument
84 create(String fullId, String type, String localId, Map<String, Object> obj, Connection connection) argument
112 update(String fullId, String type, String localId, String rev, Map<String, Object> obj, Connection connection) argument
132 delete(String fullId, String type, String localId, String rev, Connection connection) argument
177 command(String type, Map<String, Object> params, Connection connection) argument
216 isRetryable(SQLException ex, Connection connection) argument
[all...]
/forgerock/openidm-v4/openidm-repo-jdbc/src/main/java/org/forgerock/openidm/repo/jdbc/impl/
H A DDB2SQLExceptionHandler.java39 public boolean isRetryable(SQLException ex, Connection connection) { argument
/forgerock/openidm-v4/openidm-zip/src/main/resources/samples/scriptedcrest2dj/tools/
H A DTestScript.groovy32 def connection = connection as Connection
/forgerock/openam/openam-core/src/main/java/com/sun/identity/setup/
H A DAMSetupUtils.java192 HttpURLConnection connection = null;
194 connection = openConnection(serverUrl + "/getServerInfo.jsp");
195 writeToConnection(connection, "IDToken1=" + URLEncoder.encode(userId, "UTF-8")
198 return BootstrapData.queryStringToMap(readFromConnection(connection).replace("\n", ""));
211 if (connection != null) {
213 status = connection.getResponseCode();
224 if (connection != null) {
225 connection.disconnect();
232 HttpURLConnection connection = (HttpURLConnection) url.openConnection();
234 HttpsURLConnection sslConnection = (HttpsURLConnection) connection;
244 writeToConnection(URLConnection connection, String data) argument
256 readFromConnection(URLConnection connection) argument
[all...]
/forgerock/openam/openam-core/src/main/java/org/forgerock/openam/sm/datalayer/api/
H A DConnectionFactory.java30 * Creates a connection asynchronously. The returned promise can be used to obtain and act on the eventually
32 * @return A promise that will be resolved with a connection.
37 * Create a connection synchronously.
38 * @return The created connection.
48 * Checks if a (possibly null) connection is valid for use.
50 boolean isValid(T connection); argument
/forgerock/openam-v13/openam-core/src/main/java/org/forgerock/openam/cts/impl/query/reaper/
H A DReaperConnection.java33 * of the connection that will be used for the paged query against the LDAP server.
38 * and close the established connection.
43 private C connection; field in class:ReaperConnection
47 * @param factory Required for establishing a connection to the persistence layer.
57 * If this first call, then establishes a connection to the persistence layer and
59 * the connection will be closed automatically.
91 * If this is the first call, then initialise the connection.
93 * @throws org.forgerock.openam.sm.datalayer.api.LdapOperationFailedException If there was an error getting the connection.
96 if (connection == null) {
98 connection
[all...]
/forgerock/openam-v13/openam-console/src/main/java/com/sun/identity/console/sts/model/
H A DSTSInstanceModelBase.java341 private String getSuccessMessage(HttpURLConnection connection) throws IOException { argument
342 return readInputStream(connection.getInputStream());
345 private String getErrorMessage(HttpURLConnection connection) throws IOException { argument
346 if (connection.getErrorStream() != null) {
347 return readInputStream(connection.getErrorStream());
349 return readInputStream(connection.getInputStream());
412 HttpURLConnection connection = HttpURLConnectionManager.getConnection(url);
413 connection.setDoOutput(true);
414 connection.setRequestMethod("POST");
415 connection
[all...]
/forgerock/openidm-v4/openidm-repo-jdbc/src/test/java/org/forgerock/openidm/repo/jdbc/internal/
H A DDBUnitUtils.java48 private IDatabaseConnection connection; field in class:DBUnitUtils
55 if (connection == null) {
57 connection = new DatabaseConnection(DriverManager.getConnection("jdbc:hsqldb:mem:openidmtestdb"));
61 // connection = new DatabaseDataSourceConnection(ctx, "java:openejb/Resource/openidmDS");
72 // ctx.bind("jdbc/openidm", connection);
74 return connection;
78 if (connection != null) {
79 connection.close();
80 connection = null;
122 Connection connection
[all...]
/forgerock/openam/openam-console/src/main/java/com/sun/identity/console/sts/model/
H A DSTSInstanceModelBase.java341 private String getSuccessMessage(HttpURLConnection connection) throws IOException { argument
342 return readInputStream(connection.getInputStream());
345 private String getErrorMessage(HttpURLConnection connection) throws IOException { argument
346 if (connection.getErrorStream() != null) {
347 return readInputStream(connection.getErrorStream());
349 return readInputStream(connection.getInputStream());
412 HttpURLConnection connection = HttpURLConnectionManager.getConnection(url);
413 connection.setDoOutput(true);
414 connection.setRequestMethod("POST");
415 connection
[all...]
/forgerock/openam-v13/openam-core/src/main/java/com/iplanet/am/util/
H A DCLILogin.java198 HttpURLConnection connection = HttpURLConnectionManager.getConnection(url);
205 String cookie = connection.getHeaderField("Set-cookie");
211 connection.disconnect();
217 HttpURLConnection connection = HttpURLConnectionManager.getConnection(url);
218 connection.setDoOutput(true);
219 connection.setRequestMethod("POST");
220 connection.setRequestProperty("Cookie", cookie);
228 PrintWriter out = new PrintWriter(connection.getOutputStream());
234 new BufferedReader(new InputStreamReader(connection.getInputStream()));
239 HttpURLConnection connection
[all...]
/forgerock/openam/openam-core/src/main/java/com/iplanet/am/util/
H A DCLILogin.java198 HttpURLConnection connection = HttpURLConnectionManager.getConnection(url);
205 String cookie = connection.getHeaderField("Set-cookie");
211 connection.disconnect();
217 HttpURLConnection connection = HttpURLConnectionManager.getConnection(url);
218 connection.setDoOutput(true);
219 connection.setRequestMethod("POST");
220 connection.setRequestProperty("Cookie", cookie);
228 PrintWriter out = new PrintWriter(connection.getOutputStream());
234 new BufferedReader(new InputStreamReader(connection.getInputStream()));
239 HttpURLConnection connection
[all...]

Completed in 272 milliseconds

1234567891011>>