Code example for HttpClient

Methods: getConnectionManager

0
        if (developmentMode) logger.warn("Running in development mode");
    } 
 
    @Override 
    public void destroy() throws Exception { 
        httpclient.getConnectionManager().shutdown();       
    } 
     
    @Override 
    public boolean process(String path, HttpServletRequest request, HttpServletResponse response) throws Exception {
        if (logger.isDebugEnabled()) { 
            logger.debug("> process '{}'", path);
        } else { 
            logger.info("process '{}'", path);
        } 
 
        try { 
 
            if (GET_STATE.equals(path)) {
                response.setCharacterEncoding("UTF-8");