test/jdk/javax/management/remote/rest/DefaultRestAdapter.java
author hb
Mon, 25 Dec 2017 20:42:05 +0530
branchjmx-rest-api
changeset 55994 9721e36abeb0
permissions -rw-r--r--
Implementation of GET for new APIs Implemented paging and filtering for GET
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
55994
9721e36abeb0 Implementation of GET for new APIs
hb
parents:
diff changeset
     1
/*
9721e36abeb0 Implementation of GET for new APIs
hb
parents:
diff changeset
     2
 * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
9721e36abeb0 Implementation of GET for new APIs
hb
parents:
diff changeset
     3
 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
9721e36abeb0 Implementation of GET for new APIs
hb
parents:
diff changeset
     4
 */
9721e36abeb0 Implementation of GET for new APIs
hb
parents:
diff changeset
     5
9721e36abeb0 Implementation of GET for new APIs
hb
parents:
diff changeset
     6
 /*
9721e36abeb0 Implementation of GET for new APIs
hb
parents:
diff changeset
     7
 * @test
9721e36abeb0 Implementation of GET for new APIs
hb
parents:
diff changeset
     8
 * @run main/othervm -Dcom.sun.management.jmxremote.rest.port=8686 -Dcom.sun.management.config.file=/home/harsha/work/jdk10_rest/jdk/test/javax/management/remote/rest/mgmt1.properties DefaultRestAdapter
9721e36abeb0 Implementation of GET for new APIs
hb
parents:
diff changeset
     9
 */
9721e36abeb0 Implementation of GET for new APIs
hb
parents:
diff changeset
    10
import java.io.IOException;
9721e36abeb0 Implementation of GET for new APIs
hb
parents:
diff changeset
    11
import java.util.Arrays;
9721e36abeb0 Implementation of GET for new APIs
hb
parents:
diff changeset
    12
9721e36abeb0 Implementation of GET for new APIs
hb
parents:
diff changeset
    13
public class DefaultRestAdapter {
9721e36abeb0 Implementation of GET for new APIs
hb
parents:
diff changeset
    14
9721e36abeb0 Implementation of GET for new APIs
hb
parents:
diff changeset
    15
    public static void main(String[] args) throws IOException, Exception {
9721e36abeb0 Implementation of GET for new APIs
hb
parents:
diff changeset
    16
        Arrays.asList(args).stream().forEach(System.out::println);
9721e36abeb0 Implementation of GET for new APIs
hb
parents:
diff changeset
    17
        Thread.sleep(1000000);
9721e36abeb0 Implementation of GET for new APIs
hb
parents:
diff changeset
    18
    }
9721e36abeb0 Implementation of GET for new APIs
hb
parents:
diff changeset
    19
}
9721e36abeb0 Implementation of GET for new APIs
hb
parents:
diff changeset
    20
9721e36abeb0 Implementation of GET for new APIs
hb
parents:
diff changeset
    21
9721e36abeb0 Implementation of GET for new APIs
hb
parents:
diff changeset
    22