Examples of HelloWorldResource


Examples of ch.ethz.inf.vs.californium.examples.resources.HelloWorldResource

 
  public static void main(String[] args) throws Exception {
    Server server = new Server();
    server.setExecutor(Executors.newScheduledThreadPool(4));
   
    server.add(new HelloWorldResource("hello"));
    server.add(new FibonacciResource("fibonacci"));
    server.add(new StorageResource("storage"));
    server.add(new ImageResource("image"));
    server.add(new MirrorResource("mirror"));
    server.add(new LargeResource("large"));
View Full Code Here

Examples of com.example.helloworld.resources.HelloWorldResource

    @Override
    protected void initialize(HelloWorldConfiguration configuration,
                              Environment environment) {
        final String template = configuration.getTemplate();
        final String defaultName = configuration.getDefaultName();
        environment.addResource(new HelloWorldResource(template, defaultName));
        environment.addHealthCheck(new TemplateHealthCheck(template));
    }
View Full Code Here

Examples of com.example.helloworld.resources.HelloWorldResource

        environment.jersey().register(DateRequiredFeature.class);

        environment.jersey().register(AuthFactory.binder(new BasicAuthFactory<>(new ExampleAuthenticator(),
                                                                 "SUPER SECRET STUFF",
                                                                 User.class)));
        environment.jersey().register(new HelloWorldResource(template));
        environment.jersey().register(new ViewResource());
        environment.jersey().register(new ProtectedResource());
        environment.jersey().register(new PeopleResource(dao));
        environment.jersey().register(new PersonResource(dao));
        environment.jersey().register(new FilteredResource());
View Full Code Here

Examples of com.sun.jersey.samples.helloworld.resources.HelloWorldResource

    @Override
    public Set<Object> getSingletons() {
        Set<Object> classes = new HashSet<Object>();

        HelloWorldResource hwr = new HelloWorldResource();
        classes.add(hwr);

        return classes;
    }
View Full Code Here

Examples of com.tearsofaunicorn.diy.resources.HelloWorldResource

    @Override
    public void run(HelloWorldConfiguration configuration,
                    Environment environment) {
        final String template = configuration.getTemplate();
        final String defaultName = configuration.getDefaultName();
        environment.addResource(new HelloWorldResource(template, defaultName));
    environment.addHealthCheck(new TemplateHealthCheck(template));
    }
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.