Package com.groupon.odo.proxylib.models

Examples of com.groupon.odo.proxylib.models.ServerRedirect


            );
            queryStatement.setInt(1, profileId);
            queryStatement.setInt(2, serverGroupId);
            results = queryStatement.executeQuery();
            while (results.next()) {
                ServerRedirect curServer = new ServerRedirect(results.getInt(Constants.GENERIC_ID),
                        results.getString(Constants.SERVER_REDIRECT_REGION),
                        results.getString(Constants.SERVER_REDIRECT_SRC_URL),
                        results.getString(Constants.SERVER_REDIRECT_DEST_URL),
                        results.getString(Constants.SERVER_REDIRECT_HOST_HEADER));
                curServer.setProfileId(profileId);
                servers.add(curServer);
            }
        } catch (SQLException e) {
            e.printStackTrace();
        } catch (Exception e) {
View Full Code Here


                            " WHERE " + Constants.GENERIC_ID + " = ?"
            );
            queryStatement.setInt(1, id);
            results = queryStatement.executeQuery();
            if (results.next()) {
                ServerRedirect curServer = new ServerRedirect(results.getInt(Constants.GENERIC_ID),
                        results.getString(Constants.SERVER_REDIRECT_REGION),
                        results.getString(Constants.SERVER_REDIRECT_SRC_URL),
                        results.getString(Constants.SERVER_REDIRECT_DEST_URL),
                        results.getString(Constants.SERVER_REDIRECT_HOST_HEADER));
                curServer.setProfileId(results.getInt(Constants.GENERIC_PROFILE_ID));

                return curServer;
            }
            logger.info("Did not find the ID: {}", id);
        } catch (SQLException e) {
View Full Code Here

    public
    @ResponseBody
    List<ServerRedirect> deleteRedirectUrl(Model model, @PathVariable int id) throws Exception {
        // get the profile id from this redirect so we can return the remaining
        // data
        ServerRedirect redir = ServerRedirectService.getInstance().getRedirect(id);
        int profileId = redir.getProfileId();
        ServerRedirectService.getInstance().deleteRedirect(id);
        return ServerRedirectService.getInstance().tableServers(profileId);
    }
View Full Code Here

TOP

Related Classes of com.groupon.odo.proxylib.models.ServerRedirect

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.