Skip to content

Instantly share code, notes, and snippets.

Created July 27, 2016 09:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/7ff2f0169e66b90f5cf2cdfd81f385f0 to your computer and use it in GitHub Desktop.
Save anonymous/7ff2f0169e66b90f5cf2cdfd81f385f0 to your computer and use it in GitHub Desktop.
public class TransportSecureSearchAction
extends HandledTransportAction<SearchRequest, SearchResponse>{
private final TransportSearchAction tsa;
@Inject
public TransportSecureSearchAction(Settings settings, ThreadPool threadPool, SearchPhaseController searchPhaseController,
TransportService transportService, SearchServiceTransportAction searchService,
ClusterService clusterService, ActionFilters actionFilters, IndexNameExpressionResolver
indexNameExpressionResolver) {
super(settings, SecureSearchAction.NAME, threadPool, transportService, actionFilters, indexNameExpressionResolver, SearchRequest.class);
tsa = new TransportSearchAction(settings, threadPool, searchPhaseController, transportService, searchService, clusterService, actionFilters, indexNameExpressionResolver);
}
@Override
protected void doExecute(SearchRequest searchRequest, ActionListener<SearchResponse> listener) {
logger.info("Entering the doExecute of the secureRequest");
logger.debug("after getting extra source");
tsa.doExecute(searchRequest, listener);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment