I am developing a web service using jersey and Maven. I want to pass a file path via Url to send the it to server. But i got an error as:
in web server:
@Path("/hello") //Path
public class HelloWorldService {
@GET
@Path("/{param}") //parameter
public Response getMsg(@PathParam("param") String msg) throws MalformedURLException, ClassNotFoundException, IllegalArgumentException, FileNotFoundException, FileFormatException, IllegalAccessException, InvocationTargetException, NoSuchMethodException, SecurityException {
String output ="Server response: "+ msg; //Get the file path here.
return Response.status(200).entity(output).build();
}
}
How to i can pass the path to server?