Browse Source

changed port for rest example

master
Sebastian Rieger 7 years ago
parent
commit
99f6b1e65c
  1. 2
      VerteilteSysteme-Examples/src/verteiltesysteme/rest/RESTClient.java
  2. 2
      VerteilteSysteme-Examples/src/verteiltesysteme/rest/RESTServer.java

2
VerteilteSysteme-Examples/src/verteiltesysteme/rest/RESTClient.java

@ -10,7 +10,7 @@ import javax.ws.rs.core.MediaType;
public class RESTClient { public class RESTClient {
public static void main(String[] args) { public static void main(String[] args) {
String baseUrl = (args.length > 1) ? args[1] : "http://localhost:4434";
String baseUrl = (args.length > 1) ? args[1] : "http://localhost:36040";
String webContextPathUpper = "/touppercase"; String webContextPathUpper = "/touppercase";
String webContextPathLower = "/tolowercase"; String webContextPathLower = "/tolowercase";

2
VerteilteSysteme-Examples/src/verteiltesysteme/rest/RESTServer.java

@ -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 );

Loading…
Cancel
Save