@Override public PIPResponse getAttributes(PIPRequest pipRequest, PIPFinder pipFinder) throws PIPException { if (this.jdbcResolvers.size() == 0) { throw new IllegalStateException(this.getClass().getCanonicalName() + " is not configured"); } StdMutablePIPResponse mutablePIPResponse = new StdMutablePIPResponse(); for (JDBCResolver jdbcResolver : this.jdbcResolvers) { this.getAttributes(pipRequest, pipFinder, jdbcResolver, mutablePIPResponse); } if (mutablePIPResponse.getAttributes().size() == 0) { if (this.logger.isDebugEnabled()) { this.logger.debug("returning empty response"); } return StdPIPResponse.PIP_RESPONSE_EMPTY; } else { if (this.logger.isDebugEnabled()) { this.logger.trace("Returning " + mutablePIPResponse.getAttributes().size() + " attributes"); for (Attribute attribute : mutablePIPResponse.getAttributes()) { this.logger.debug(AttributeUtils.prettyPrint(attribute)); } } else if (this.logger.isDebugEnabled()) { // this.logger.debug("Returning " + mutablePIPResponse.getAttributes().size() + " attributes"); // this.logger.debug(mutablePIPResponse.getAttributes()); } return new StdPIPResponse(mutablePIPResponse); } }
@Override public PIPResponse getAttributes(PIPRequest pipRequest, PIPFinder pipFinder) throws PIPException { if (this.jdbcResolvers.size() == 0) { throw new IllegalStateException(this.getClass().getCanonicalName() + " is not configured"); } StdMutablePIPResponse mutablePIPResponse = new StdMutablePIPResponse(); for (JDBCResolver jdbcResolver : this.jdbcResolvers) { this.getAttributes(pipRequest, pipFinder, jdbcResolver, mutablePIPResponse); } if (mutablePIPResponse.getAttributes().size() == 0) { if (this.logger.isDebugEnabled()) { this.logger.debug("returning empty response"); } return StdPIPResponse.PIP_RESPONSE_EMPTY; } else { if (this.logger.isDebugEnabled()) { this.logger.trace("Returning " + mutablePIPResponse.getAttributes().size() + " attributes"); for (Attribute attribute : mutablePIPResponse.getAttributes()) { this.logger.debug(AttributeUtils.prettyPrint(attribute)); } } else if (this.logger.isDebugEnabled()) { // this.logger.debug("Returning " + mutablePIPResponse.getAttributes().size() + " attributes"); // this.logger.debug(mutablePIPResponse.getAttributes()); } return new StdPIPResponse(mutablePIPResponse); } }
Collection<PIPRequest> attributes = configurableEngine.attributesProvided(); for (PIPRequest attribute : attributes) { this.logger.debug(System.lineSeparator() + AttributeUtils.prettyPrint(attribute)); this.logger.debug(System.lineSeparator() + AttributeUtils.prettyPrint(attribute));
Collection<PIPRequest> attributes = configurableEngine.attributesProvided(); for (PIPRequest attribute : attributes) { this.logger.debug(System.lineSeparator() + AttributeUtils.prettyPrint(attribute)); this.logger.debug(System.lineSeparator() + AttributeUtils.prettyPrint(attribute));
this.logger.debug("Returning " + mutablePIPResponse.getAttributes().size() + " attributes"); for (Attribute attribute : mutablePIPResponse.getAttributes()) { this.logger.debug(System.lineSeparator() + AttributeUtils.prettyPrint(attribute));
this.logger.debug("Returning " + mutablePIPResponse.getAttributes().size() + " attributes"); for (Attribute attribute : mutablePIPResponse.getAttributes()) { this.logger.debug(System.lineSeparator() + AttributeUtils.prettyPrint(attribute));
logger.debug(AttributeUtils.prettyPrint(stdMutableRequest));
logger.debug(AttributeUtils.prettyPrint(stdMutableRequest));