/** {@inheritDoc} */ @Override public int getCompatibilityScore(final Request request) { return chain.getCompatibilityScore(request); }
@Override public int getCompatibilityScore(Request request) { return delegate.getCompatibilityScore(request); }
@Override public final int getCompatibilityScore(Request request) { return delegate.getCompatibilityScore(request); }
/** {@inheritDoc} */ @Override public int getCompatibilityScore(final Request request) { return chain.getCompatibilityScore(request); }
@Override public final int getCompatibilityScore(Request request) { return delegate.getCompatibilityScore(request); }
@Override public int getCompatibilityScore(Request request) { return delegate.getCompatibilityScore(request); }
@Override public int getCompatibilityScore(Request request) { return delegate.getCompatibilityScore(request); }
@Override public int getCompatibilityScore(Request request) { return delegate.getCompatibilityScore(request); }
@Override public int getCompatibilityScore(Request request) { return delegate.getCompatibilityScore(request); }
@Override public final int getCompatibilityScore(Request request) { return delegate.getCompatibilityScore(request); }
@Override public final int getCompatibilityScore(Request request) { return delegate.getCompatibilityScore(request); }
/** * {@inheritDoc} */ @Override public int getCompatibilityScore(final Request request) { int score = Integer.MIN_VALUE; for (final IRequestMapper requestMapper : this.requestMappers) { score = Math.max(score, requestMapper.getCompatibilityScore(request)); } return score; }
/** * The scope of the compound mapper is the highest score of the registered mappers. * * {@inheritDoc} */ @Override public int getCompatibilityScore(final Request request) { int score = Integer.MIN_VALUE; for (IRequestMapper mapper : this) { score = Math.max(score, mapper.getCompatibilityScore(request)); } return score; }
/** * The scope of the compound mapper is the highest score of the registered mappers. * * {@inheritDoc} */ @Override public int getCompatibilityScore(final Request request) { int score = Integer.MIN_VALUE; for (IRequestMapper mapper : this) { score = Math.max(score, mapper.getCompatibilityScore(request)); } return score; }
public int getCompatibilityScore(Request request) { return getMapper().getCompatibilityScore(request); }
/** * Initialize request mappers. * * @param request * the request * @return the collection */ private Collection<RequestMapperBean> initializeRequestMappers(final Request request) { final Set<RequestMapperBean> mapperBeans = new TreeSet<>(getComparator()); for (final IRequestMapper requestMapper : this.requestMappers) { mapperBeans.add( new RequestMapperBean(requestMapper, requestMapper.getCompatibilityScore(request))); } return mapperBeans; }
/** * {@inheritDoc} * <p> * This implementation decrypts the URL and passes the decrypted URL to the wrapped mapper. * </p> * @param request * The request for which to get a compatibility score. * * @return The compatibility score. */ @Override public int getCompatibilityScore(final Request request) { Url decryptedUrl = decryptUrl(request, request.getUrl()); if (decryptedUrl == null) { return 0; } Request decryptedRequest = request.cloneWithUrl(decryptedUrl); return wrappedMapper.getCompatibilityScore(decryptedRequest); }
/** * {@inheritDoc} * <p> * This implementation decrypts the URL and passes the decrypted URL to the wrapped mapper. * </p> * @param request * The request for which to get a compatibility score. * * @return The compatibility score. */ @Override public int getCompatibilityScore(final Request request) { Url decryptedUrl = decryptUrl(request, request.getUrl()); if (decryptedUrl == null) { return 0; } Request decryptedRequest = request.cloneWithUrl(decryptedUrl); return wrappedMapper.getCompatibilityScore(decryptedRequest); }
int score = mapper.getCompatibilityScore(request); list.add(new MapperWithScore(mapper, score));
int score = mapper.getCompatibilityScore(request); list.add(new MapperWithScore(mapper, score));