parameter « restful « Java Enterprise Q&A





1. How do I encode URI parameter values?    stackoverflow.com

I want to send a URI as the value of a query/matrix parameter. Before I can append it to an existing URI, I need to encode it according to RFC 2396. ...

2. Encoding/decoding REST path parameters    stackoverflow.com

I am trying to find the best way of getting round a design flaw in a web app I'm helping to support. One part of the service passes a parameter ("myparam") ...

3. URL matrix parameters vs. request parameters    stackoverflow.com

I'm wondering whether to use matrix or query parameters in my URLs. I found an older discussion to that topic not satisfying. Examples

4. How to find type of Annotated function parameter    stackoverflow.com

Suppose I have a function

public int doSomething(@QueryParam("id") String name, int x){ .... }
How can I find the type of the annotated parameter 'name'. I have a handle to the java.lang.reflect.Method ...

5. 404 Error with Java EE Web service GET request with decimal point in parameter value    stackoverflow.com

I've created a Java stateless session bean to provide RESTful services to clients, and I get a 404 Not Found erorr when I pass in a parameter with a decimal point ...

6. Parameter parsing with Java Restlet    stackoverflow.com

I'm trying to make a calculator web service that has more than 10 parameters. Is there any function in the Java Restlet or in Java itself that allows you to see ...

7. Get HTTP Get parameters from Restlet Request    stackoverflow.com

I am trying to figure out how to get the parameters from a Restlet request object. my request comes in as /customer?userId=1 and I want to grab the parameter to pass to ...

8. How are REST Array Parameters handled over MultiPart Form and XMLRPC?    stackoverflow.com

Im using an API and one of the ways this API works is it lets you declare an array of parameters for some calls. The way they describe the rest request ...

9. jax-rs retrieve form parameters    stackoverflow.com

I'm trying to retrieve some parameters that are passed to jax-rs from a posted form with the HttpServletRequest. However, my request object is always returning null values for my parameters. Am ...





10. Java Restlets - Match arbitrarily long URI path parameter    stackoverflow.com

Using Restlets you can route URIs using a system based on the URI template specification. I want to be able to route URIs which match the following ...

11. pass array as a parameter in restful webservice    stackoverflow.com

I have so many parameters to pass on the server using Restful web services , is there a way to pass Array or AarryList with the REST url ? i am using JAX-RS ...

12. how to pass parameter    stackoverflow.com

I have written a method for user authentication method in REST web service. After successful authentication, I want to pass the username. How can I pass it? Can I get value ...

13. how to PUT multiple query parameter in REST web service    stackoverflow.com

Do anyone know how to PUT multiple query parameter in REST web service? I have write using java.My curl sample is like this:

curl -X PUT http://locahost:8080/project/resources/user/directory/sub-directory?name=shareuser&type=Read -v
My program is :
@PUT
@Path("{user}/{directory:.+}")
public Response doshare(@PathParam("user")String ...

14. how to get parameter in REST web service from curl?    stackoverflow.com

if the user request in curl like curl -u username:password . I wonder how to get parameter from curl -u in REST web service?Do any know? I use jersey framework using java. I ...

15. Get parameter from curl command in REST web serivce    stackoverflow.com

I want to get username and password from curl command in REST web service using Plain Java Class. My java class is @GET public Response check(String username,String password) { authenticate..... } I ...

16. how to get parameters' value from curl in REST web service in java    stackoverflow.com

Do anyone know how to get parameters' values from curl command in REST web service using java.I have write a REST web service using jersey framework and java in NetBean IDE. This ...





17. Invoke RESTful webservice with parameter    stackoverflow.com

I have a simple RESTful web service that print "Hello World !" I'm using NetBeans and the code looks like :

package resource;

import javax.ws.rs.core.Context;
import javax.ws.rs.core.UriInfo;
import javax.ws.rs.Consumes;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.GET;
import javax.ws.rs.Produces;


@Path("simple")
public class SimpleResource {

 ...

18. How can I pass a custom type as parameter to RestEasy service?    stackoverflow.com

I feel embarrassed to ask: but what is the right combination of annotations for a resteasy service method that will unmarshall a custom type? I am able to successfully generate json and ...

19. How to create a Restful web service with input parameters?    stackoverflow.com

I am creating restful web service and i wanted to know how do we create a service with input parameters and also how to invoke it from a web browser. For example

@Path("/todo")
public ...

20. JAX-RS and unknown query parameters    stackoverflow.com

I have a Java client that calls a RESTEasy (JAX-RS) Java server. It is possible that some of my users may have a newer version of the client than the server. That ...

21. Command-line REST client in Java with parameters?    stackoverflow.com

I am using this Java REST client (version 2.3):

http://code.google.com/p/rest-client/
I am trying to run it from the command line:
java -jar <REST_CLIENT.JAR> <login> <password> PUT http://bsmgw.bms.consulting.com/opr-console/rest/9.10/event_list/6eea76ae-ff22-71e0-0431-ac10016b0000 update2.xm`l
For example:
C:\test\REST>java -jar ...

22. RESTful webservice with unknown number of parameters    stackoverflow.com

I am writing a RESTful web service using Java which should be able to take as (POST) input an unknown number of parameter name, value pairs. I am thinking what is ...