GatewayRoute.java 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. * Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
  3. *
  4. * Redistribution and use in source and binary forms, with or without
  5. * modification, are permitted provided that the following conditions are met:
  6. *
  7. * Redistributions of source code must retain the above copyright notice,
  8. * this list of conditions and the following disclaimer.
  9. * Redistributions in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. * Neither the name of the dreamlu.net developer nor the names of its
  13. * contributors may be used to endorse or promote products derived from
  14. * this software without specific prior written permission.
  15. * Author: Chill 庄骞 (smallchill@163.com)
  16. */
  17. package org.springblade.gateway.dynamic;
  18. import lombok.Data;
  19. import java.util.ArrayList;
  20. import java.util.List;
  21. /**
  22. * Gateway的路由定义模型
  23. *
  24. * @author Chill
  25. */
  26. @Data
  27. public class GatewayRoute {
  28. /**
  29. * 路由的id
  30. */
  31. private String id;
  32. /**
  33. * 路由断言集合配置
  34. */
  35. private List<GatewayPredicate> predicates = new ArrayList<>();
  36. /**
  37. * 路由过滤器集合配置
  38. */
  39. private List<GatewayFilter> filters = new ArrayList<>();
  40. /**
  41. * 路由规则转发的目标uri
  42. */
  43. private String uri;
  44. /**
  45. * 路由执行的顺序
  46. */
  47. private int order = 0;
  48. }