Package org.restlet.service

Examples of org.restlet.service.StatusService


        this.outboundRoot = null;
        this.inboundRoot = null;
        this.roles = new CopyOnWriteArrayList<Role>();
        this.services = new ServiceList(context);
        this.services.add(new TunnelService(true, true));
        this.services.add(new StatusService());
        this.services.add(new DecoderService());
        this.services.add(new EncoderService(false));
        this.services.add(new RangeService());
        this.services.add(new ConnectorService());
        this.services.add(new ConverterService());
View Full Code Here


            this.defaultHost = new VirtualHost(getContext()
                    .createChildContext());
            this.internalRouter = new InternalRouter(getContext()
                    .createChildContext());
            this.services.add(new LogService());
            this.services.add(new StatusService());
            this.clients.setContext(getContext());
            this.servers.setContext(getContext());
        }
    }
View Full Code Here

     * Returns the application's status service or create a new one.
     *
     * @return The status service.
     */
    public StatusService getStatusService() {
        StatusService result = null;

        result = getApplication().getStatusService();

        if (result == null) {
            result = new StatusService();
        }

        return result;
    }
View Full Code Here

           
            return slashFilter;
        }
       
        public void run(FloodlightModuleContext fmlContext, String restHost, int restPort) {
            setStatusService(new StatusService() {
                @Override
                public Representation getRepresentation(Status status,
                                                        Request request,
                                                        Response response) {
                    return new JacksonRepresentation<Status>(status);
View Full Code Here

           
            return slashFilter;
        }
       
        public void run(int restPort) {
            setStatusService(new StatusService() {
                @Override
                public Representation getRepresentation(Status status,
                                                        Request request,
                                                        Response response) {
                    return new JacksonRepresentation<Status>(status);
View Full Code Here

TOP

Related Classes of org.restlet.service.StatusService

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.