use of org.opennms.netmgt.provision.support.RequestBuilder in project opennms by OpenNMS.
the class JdbcQueryDetector method sqlQuery.
private static RequestBuilder<JDBCRequest> sqlQuery(final String sqlQuery) {
return new RequestBuilder<JDBCRequest>() {
@Override
public JDBCRequest getRequest() {
JDBCRequest request = new JDBCRequest();
request.setSqyQuery(sqlQuery);
return request;
}
};
}
use of org.opennms.netmgt.provision.support.RequestBuilder in project opennms by OpenNMS.
the class JdbcStoredProcedureDetector method storedProcedure.
private static RequestBuilder<JDBCRequest> storedProcedure(final String storedProcedure) {
return new RequestBuilder<JDBCRequest>() {
@Override
public JDBCRequest getRequest() {
JDBCRequest request = new JDBCRequest();
request.setStoredProcedure(storedProcedure);
return request;
}
};
}
use of org.opennms.netmgt.provision.support.RequestBuilder in project opennms by OpenNMS.
the class RadiusAuthDetector method request.
private static RequestBuilder<AttributeList> request(final String nasID, final String user, final String password) {
LOG.debug("request: nasID = {}, user = {}, password = {}", nasID, user, password);
return new RequestBuilder<AttributeList>() {
@Override
public AttributeList getRequest() {
final AttributeList attributes = new AttributeList();
attributes.add(new Attr_UserName(user));
attributes.add(new Attr_NASIdentifier(nasID));
attributes.add(new Attr_UserPassword(password));
return attributes;
}
};
}
Aggregations