GatewayPredicate.java 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /**
  2. * BladeX Commercial License Agreement
  3. * Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
  4. * <p>
  5. * Use of this software is governed by the Commercial License Agreement
  6. * obtained after purchasing a license from BladeX.
  7. * <p>
  8. * 1. This software is for development use only under a valid license
  9. * from BladeX.
  10. * <p>
  11. * 2. Redistribution of this software's source code to any third party
  12. * without a commercial license is strictly prohibited.
  13. * <p>
  14. * 3. Licensees may copyright their own code but cannot use segments
  15. * from this software for such purposes. Copyright of this software
  16. * remains with BladeX.
  17. * <p>
  18. * Using this software signifies agreement to this License, and the software
  19. * must not be used for illegal purposes.
  20. * <p>
  21. * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
  22. * not liable for any claims arising from secondary or illegal development.
  23. * <p>
  24. * Author: Chill Zhuang (bladejava@qq.com)
  25. */
  26. package org.springblade.gateway.dynamic;
  27. import lombok.Data;
  28. import java.util.LinkedHashMap;
  29. import java.util.Map;
  30. /**
  31. * 路由断言定义模型
  32. *
  33. * @author Chill
  34. */
  35. @Data
  36. public class GatewayPredicate {
  37. /**
  38. * 断言对应的Name
  39. */
  40. private String name;
  41. /**
  42. * 配置的断言规则
  43. */
  44. private Map<String, String> args = new LinkedHashMap<>();
  45. }