|
@ -11,7 +11,7 @@ public class RESTServer |
|
|
{ |
|
|
{ |
|
|
public static void main( String[] args ) throws IOException, InterruptedException |
|
|
public static void main( String[] args ) throws IOException, InterruptedException |
|
|
{ |
|
|
{ |
|
|
String baseUrl = ( args.length > 0 ) ? args[0] : "http://localhost:4434"; |
|
|
|
|
|
|
|
|
String baseUrl = ( args.length > 0 ) ? args[0] : "http://localhost:36040"; |
|
|
|
|
|
|
|
|
final HttpServer server = GrizzlyHttpServerFactory.createHttpServer( |
|
|
final HttpServer server = GrizzlyHttpServerFactory.createHttpServer( |
|
|
URI.create( baseUrl ), new ResourceConfig( RESTToUpperCaseService.class, RESTToLowerCaseService.class ), false ); |
|
|
URI.create( baseUrl ), new ResourceConfig( RESTToUpperCaseService.class, RESTToLowerCaseService.class ), false ); |
|
|