{"id":40548463,"url":"https://github.com/lazycece/au","last_synced_at":"2026-01-20T23:42:27.381Z","repository":{"id":45352201,"uuid":"224672755","full_name":"lazycece/au","owner":"lazycece","description":"Au is a filter framework. It is an extension based on servlet-filter. ","archived":false,"fork":false,"pushed_at":"2025-07-12T01:16:16.000Z","size":181,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-06T02:54:24.708Z","etag":null,"topics":["au","filter","request-wrapper","response-wrapper","servlet-filter"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lazycece.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-28T14:39:08.000Z","updated_at":"2025-02-15T15:27:25.000Z","dependencies_parsed_at":"2025-02-15T16:33:30.269Z","dependency_job_id":null,"html_url":"https://github.com/lazycece/au","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/lazycece/au","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lazycece%2Fau","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lazycece%2Fau/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lazycece%2Fau/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lazycece%2Fau/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lazycece","download_url":"https://codeload.github.com/lazycece/au/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lazycece%2Fau/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28618803,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T22:24:05.405Z","status":"ssl_error","status_checked_at":"2026-01-20T22:20:31.342Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["au","filter","request-wrapper","response-wrapper","servlet-filter"],"created_at":"2026-01-20T23:42:26.789Z","updated_at":"2026-01-20T23:42:27.375Z","avatar_url":"https://github.com/lazycece.png","language":"Java","readme":"# Au\n[![Maven Central](https://img.shields.io/maven-central/v/com.lazycece.au/au-core)](https://search.maven.org/search?q=au-core)\n[![License](https://img.shields.io/badge/license-Apache--2.0-green)](https://www.apache.org/licenses/LICENSE-2.0.html)\n[![GitHub release](https://img.shields.io/badge/release-download-orange.svg)](https://github.com/lazycece/au/releases)\n\n[中文](./README_zh_CN.md)\n\nAu is a filter framework. It is an extension based on servlet-filter. It provides pre-filtering and \npost-filtering of interceptor behavior. It also provides multiple reads of requests and a wrapper for response.\n\n## Architecture\n\nThe architecture of Au as follows:\n\n![architecture_diagram](/doc/image/architecture_diagram.jpg)\n\n## Environment\n\nAu environment dependency as follow:\n\n|Au|Java|servlet-api|\n|---|---|---|\n|1.x|1.8+|javax.servlet-api:\u003e=4.0.0|\n|2.x|1.8+|jakarta.servlet-api:\u003e=5.0.0|\n|3.x|17+|jakarta.servlet-api:\u003e=5.0.0|\n\n\n## Quick Start\n\nComplete example can view [au-example](https://github.com/lazycece/au/tree/master/au-example)\n\n### Maven dependency\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.lazycece.au\u003c/groupId\u003e\n  \u003cartifactId\u003eau-core\u003c/artifactId\u003e\n  \u003cversion\u003e${au.core.version}\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### Filter\n\nDefining `filter`，and implement the `AuFilter`.\n\n```java\npublic class SimpleAuFilter implements AuFilter {\n\n    @Override\n    public String name() {\n        return \"simple-filter\";\n    }\n\n    @Override\n    public boolean preHandle() throws Exception {\n        // pre handle\n        return true;\n    }\n\n    @Override\n    public void postHandle() throws Exception {\n        // post-handle\n    }\n}\n```\n\nInjecting `AuFilter`，and you can also set related policies for filters.\n\n```java\n    AuManager auManager = AuManager.getInstance();\n    auManager.addAuFilter(SimpleAuFilter.class)\n            .excludePatterns(\"/a/b\")\n            .includePatterns(\"/**\")\n            .order(1);\n    auManager.setWrapper(true);\n```\n\n### Enable Au\n\nInjecting `AuServletFilter` into `Servlet`， as follow(`jetty`):\n\n```java\n    ServletContextHandler contextHandler = new ServletContextHandler();\n    contextHandler.setContextPath(\"/au\");\n    server.setHandler(contextHandler);\n    contextHandler.addServlet(ExampleServlet.class, \"/*\");\n    contextHandler.addFilter(AuServletFilter.class, \"/*\", EnumSet.of(DispatcherType.REQUEST));\n```\n\n## License\n\n[Apache-2.0](https://www.apache.org/licenses/LICENSE-2.0.html)\n ","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flazycece%2Fau","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flazycece%2Fau","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flazycece%2Fau/lists"}