Refine search
@Autowired public AgentRemoteHandler(@Qualifier("buildRepositoryMessageProducer") BuildRepositoryRemote buildRepositoryRemote, AgentService agentService, JobInstanceService jobInstanceService, ConsoleService consoleService) { this.buildRepositoryRemote = buildRepositoryRemote; this.agentService = agentService; this.jobInstanceService = jobInstanceService; this.consoleService = consoleService; }
@Component("blGeolocationFilter") @ConditionalOnNotAdmin public class GeolocationFilter extends AbstractIgnorableOncePerRequestFilter { @Autowired @Qualifier("blGeolocationRequestProcessor") protected GeolocationRequestProcessor geolocationRequestProcessor; @Override protected void doFilterInternalUnlessIgnored(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, FilterChain filterChain) throws ServletException, IOException { ServletWebRequest request = new ServletWebRequest(httpServletRequest, httpServletResponse); try { geolocationRequestProcessor.process(request); filterChain.doFilter(httpServletRequest, httpServletResponse); } finally { geolocationRequestProcessor.postProcess(request); } } @Override public int getOrder() { return FilterOrdered.POST_SECURITY_LOW; } }
@Component public class AgentRemoteHandler { private static final Logger LOGGER = LoggerFactory.getLogger(AgentRemoteHandler.class); private Map<String, Agent> agentSessions = new ConcurrentHashMap<>(); @Qualifier("buildRepositoryMessageProducer") @Autowired private BuildRepositoryRemote buildRepositoryRemote; @Autowired private AgentService agentService; @Autowired private JobInstanceService jobInstanceService; private ConsoleService consoleService;
/** * Responsible for setting the necessary attributes on the {@link TranslationConsiderationContext}. * * @author Andre Azzolini (apazzolini), bpolster */ @Component("blTranslationFilter") @ConditionalOnNotAdmin public class TranslationFilter extends AbstractIgnorableFilter { @Autowired @Qualifier("blTranslationRequestProcessor") protected TranslationRequestProcessor translationRequestProcessor; @Override public void doFilterUnlessIgnored(ServletRequest request, ServletResponse response, FilterChain filterChain) throws IOException, ServletException { try { translationRequestProcessor.process(new ServletWebRequest((HttpServletRequest) request, (HttpServletResponse) response)); filterChain.doFilter(request, response); } finally { translationRequestProcessor.postProcess(new ServletWebRequest((HttpServletRequest) request, (HttpServletResponse) response)); } } @Override public int getOrder() { return FilterOrdered.POST_SECURITY_LOW; } }