SHARE
TWEET

Untitled

a guest Jun 24th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public interface SCIMServiceStub {
  2.  
  3.     @RequestLine("GET /Users/{id}")
  4.     SCIMUser getUser(@Param("id") String id);
  5.  
  6.     @RequestLine("GET /Groups?filter=displayName+Eq+{roleName}")
  7.     SCIMGroup isValidRole(@Param("roleName") String roleName);
  8.  
  9. }
  10.      
  11. /Groups?filter=displayName+Eq+{roleName}"
  12.      
  13. @RequestLine("GET /Groups?filter={roleName}")
  14. String isValidRole(@Param(value = "roleName", expander = PrefixExpander.class) String roleName);
  15.  
  16. static final class PrefixExpander implements Param.Expander {
  17.     @Override
  18.     public String expand(Object value) {
  19.         return "displayName+Eq+" + value;
  20.     }
  21. }
  22.      
  23. @GetMapping("user")
  24.     String getUser(@SpringQueryMap User user);
  25.      
  26. public class User {
  27.     private String name;
  28.     private int age;
  29.     ...
  30. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top