Examples of ServerSettings


Examples of com.totalchange.jizz.web.shared.admin.ServerSettings

                .andReturn(mockStation);

        replayAll();

        SetSettingsAction action = new SetSettingsAction();
        ServerSettings mockSettings = new ServerSettings();
        mockSettings.setStationName("Awesome Station");
        mockSettings.setStationUrl("http://awesome/");
        mockSettings.setBroadcastSchedule("30 0 * * * Mon");
        action.setSettings(mockSettings);

        setSettingsHandler.execute(action, null);
        assertEquals(mockSettings.getStationName(), mockStation.getName());
        assertEquals(mockSettings.getStationUrl(), mockStation.getUrl());
        assertEquals(mockSettings.getBroadcastSchedule(),
                mockStation.getBroadcastSchedule());

        verifyAll();
    }
View Full Code Here

Examples of ds.pjftp.settings.ServerSettings

     * @throws IOException if failed to load the settings.
     */
    @Override
    public ServerSettings load() throws IOException {

        ServerSettings settings = null;

        try (BufferedReader reader = Files.newBufferedReader(
                settingsFile, Charset.forName(ENCODING)))
        {
            final Unmarshaller unmarshaller = JAXBContext.newInstance(
View Full Code Here

Examples of ds.pjftp.settings.ServerSettings

        if (param.length() == 0) {
            name = "anonymous";
        } else {
            name = param;

            final ServerSettings settings = SettingsHolder.getInstance().getSettings();
            final FtpUser user = settings.getUserList().get(name);

            if (user == null) {
                session.replyWithSpace(530, "Invalid user name.");
                return;
            }
View Full Code Here

Examples of ds.pjftp.settings.ServerSettings

    /**
     * Interprets client's request and invokes appropriate handler.
     */
    private void interpretClientRequest() throws IOException {

        final ServerSettings settings = SettingsHolder.getInstance().getSettings();
        session.replyWithSpace(220, settings.getWelcomeMessage());

        ClientRequest request = null;
        while ((request = session.readRequest()) != null) {

            final String reqCmd = request.getCommand();
View Full Code Here

Examples of ds.pjftp.settings.ServerSettings

        if (sessionUser.getPassword() != null) {
            session.replyWithSpace(202, "Already logged-in.");
            return;
        }

        final ServerSettings settings = SettingsHolder.getInstance().getSettings();
        final FtpUser user = settings.getUserList().get(sessionUser.getUsername());

        // Checking password. For anonymous user it doesn't
        // matter what password he has.
        if (!param.equals(user.getPassword()) &&
            !sessionUser.getUsername().equals("anonymous"))
View Full Code Here

Examples of flex.messaging.config.ServerSettings

        ns.setThrottleSettings(ts)
        ns.setClusterId("default-tcp-cluster");
        msgDest.setNetworkSettings(ns);
       
        // <server>
        ServerSettings ss = new ServerSettings();
        ss.setMessageTTL(0);
        ss.setDurable(false);
        msgDest.setServerSettings(ss);
       
        //Use a channel that does not use the {server.name}:{server.port} tokens
        //msgDest.addChannel("qa-rtmp-cluster");       
        msgDest.addChannel("qa-amf-polling-cluster");
View Full Code Here

Examples of flex.messaging.config.ServerSettings

        ts.setOutboundPolicy(ThrottleSettings.Policy.IGNORE);
        ns.setThrottleSettings(ts);  
        msgDest.setNetworkSettings(ns);
       
        // <server>
        ServerSettings ss = new ServerSettings();
        ss.setDurable(false);
        msgDest.setServerSettings(ss);
       
        // <channels>
        msgDest.addChannel("qa-polling-amf");
       
View Full Code Here

Examples of flex.messaging.config.ServerSettings

        ts.setOutboundPolicy(ThrottleSettings.Policy.IGNORE);
        ns.setThrottleSettings(ts);  
        msgDest.setNetworkSettings(ns);
       
        // <server>
        ServerSettings ss = new ServerSettings();
        ss.setDurable(false);
        msgDest.setServerSettings(ss);
       
        // <channels>
        msgDest.addChannel("qa-polling-amf");
       
View Full Code Here

Examples of flex.messaging.config.ServerSettings

        NetworkSettings ns = new NetworkSettings();
        ns.setSubscriptionTimeoutMinutes(0);
        msgDest.setNetworkSettings(ns);
       
        // <server>
        ServerSettings ss = new ServerSettings();
        ss.setMessageTTL(0);
        ss.setDurable(false);
        msgDest.setServerSettings(ss);
       
        msgDest.addChannel(channel);
       
        return msgDest;
View Full Code Here

Examples of flex.messaging.config.ServerSettings

        ts.setOutboundPolicy(Policy.IGNORE);
        ts.setOutgoingDestinationFrequency(0);
        ns.setThrottleSettings(ts);
        destination.setNetworkSettings(ns);
       
        ServerSettings ss = new ServerSettings();
        ss.setMessageTTL(0);
        ss.setBroadcastRoutingMode("server-to-server");
        destination.setServerSettings(ss);

        destination.addChannel("my-polling-amf");
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.