Parse a URI String into Name-Value Collection

前端 未结 19 2476
难免孤独
难免孤独 2020-11-22 01:34

I\'ve got the URI like this:

https://google.com.ua/oauth/authorize?client_id=SS&response_type=code&scope=N_FULL&access_type=offline&redirect_         


        
19条回答
  •  感情败类
    2020-11-22 01:58

    If you are using servlet doGet try this

    request.getParameterMap()
    

    Returns a java.util.Map of the parameters of this request.

    Returns: an immutable java.util.Map containing parameter names as keys and parameter values as map values. The keys in the parameter map are of type String. The values in the parameter map are of type String array.

    (Java doc)

提交回复
热议问题