Replace String literals with HttpHeaders constants
MSALReplace String literals with org.springframework.http.HttpHeaders constants in modules that depend on spring-web.
org. openrewrite. java. spring. http. ReplaceStringLiteralsWithHttpHeadersConstantsmod run . --recipe= org. openrewrite. java. spring. http. ReplaceStringLiteralsWithHttpHeadersConstantsInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.
- Replace String literal with constant
org.springframework.http.HttpHeaders.ACCEPT - Replace String literal with constant
org.springframework.http.HttpHeaders.ACCEPT_CHARSET - Replace String literal with constant
org.springframework.http.HttpHeaders.ACCEPT_ENCODING - Replace String literal with constant
org.springframework.http.HttpHeaders.ACCEPT_LANGUAGE - Replace String literal with constant
org.springframework.http.HttpHeaders.ACCEPT_PATCH - Replace String literal with constant
org.springframework.http.HttpHeaders.ACCEPT_RANGES - Replace String literal with constant
org.springframework.http.HttpHeaders.ACCESS_CONTROL_ALLOW_CREDENTIALS - Replace String literal with constant
org.springframework.http.HttpHeaders.ACCESS_CONTROL_ALLOW_HEADERS - Replace String literal with constant
org.springframework.http.HttpHeaders.ACCESS_CONTROL_ALLOW_METHODS - Replace String literal with constant
org.springframework.http.HttpHeaders.ACCESS_CONTROL_ALLOW_ORIGIN - Replace String literal with constant
org.springframework.http.HttpHeaders.ACCESS_CONTROL_EXPOSE_HEADERS - Replace String literal with constant
org.springframework.http.HttpHeaders.ACCESS_CONTROL_MAX_AGE - Replace String literal with constant
org.springframework.http.HttpHeaders.ACCESS_CONTROL_REQUEST_HEADERS - Replace String literal with constant
org.springframework.http.HttpHeaders.ACCESS_CONTROL_REQUEST_METHOD - Replace String literal with constant
org.springframework.http.HttpHeaders.AGE - Replace String literal with constant
org.springframework.http.HttpHeaders.ALLOW - Replace String literal with constant
org.springframework.http.HttpHeaders.AUTHORIZATION - Replace String literal with constant
org.springframework.http.HttpHeaders.CACHE_CONTROL - Replace String literal with constant
org.springframework.http.HttpHeaders.CONNECTION - Replace String literal with constant
org.springframework.http.HttpHeaders.CONTENT_ENCODING - Replace String literal with constant
org.springframework.http.HttpHeaders.CONTENT_DISPOSITION - Replace String literal with constant
org.springframework.http.HttpHeaders.CONTENT_LANGUAGE - Replace String literal with constant
org.springframework.http.HttpHeaders.CONTENT_LENGTH - Replace String literal with constant
org.springframework.http.HttpHeaders.CONTENT_LOCATION - Replace String literal with constant
org.springframework.http.HttpHeaders.CONTENT_RANGE - Replace String literal with constant
org.springframework.http.HttpHeaders.CONTENT_TYPE - Replace String literal with constant
org.springframework.http.HttpHeaders.COOKIE - Replace String literal with constant
org.springframework.http.HttpHeaders.DATE - Replace String literal with constant
org.springframework.http.HttpHeaders.ETAG - Replace String literal with constant
org.springframework.http.HttpHeaders.EXPECT - Replace String literal with constant
org.springframework.http.HttpHeaders.EXPIRES - Replace String literal with constant
org.springframework.http.HttpHeaders.FROM - Replace String literal with constant
org.springframework.http.HttpHeaders.HOST - Replace String literal with constant
org.springframework.http.HttpHeaders.IF_MATCH - Replace String literal with constant
org.springframework.http.HttpHeaders.IF_MODIFIED_SINCE - Replace String literal with constant
org.springframework.http.HttpHeaders.IF_NONE_MATCH - Replace String literal with constant
org.springframework.http.HttpHeaders.IF_RANGE - Replace String literal with constant
org.springframework.http.HttpHeaders.IF_UNMODIFIED_SINCE - Replace String literal with constant
org.springframework.http.HttpHeaders.LAST_MODIFIED - Replace String literal with constant
org.springframework.http.HttpHeaders.LINK - Replace String literal with constant
org.springframework.http.HttpHeaders.LOCATION - Replace String literal with constant
org.springframework.http.HttpHeaders.MAX_FORWARDS - Replace String literal with constant
org.springframework.http.HttpHeaders.ORIGIN - Replace String literal with constant
org.springframework.http.HttpHeaders.PRAGMA - Replace String literal with constant
org.springframework.http.HttpHeaders.PROXY_AUTHENTICATE - Replace String literal with constant
org.springframework.http.HttpHeaders.PROXY_AUTHORIZATION - Replace String literal with constant
org.springframework.http.HttpHeaders.RANGE - Replace String literal with constant
org.springframework.http.HttpHeaders.REFERER - Replace String literal with constant
org.springframework.http.HttpHeaders.RETRY_AFTER - Replace String literal with constant
org.springframework.http.HttpHeaders.SERVER - Replace String literal with constant
org.springframework.http.HttpHeaders.SET_COOKIE - Replace String literal with constant
org.springframework.http.HttpHeaders.SET_COOKIE2 - Replace String literal with constant
org.springframework.http.HttpHeaders.TE - Replace String literal with constant
org.springframework.http.HttpHeaders.TRAILER - Replace String literal with constant
org.springframework.http.HttpHeaders.TRANSFER_ENCODING - Replace String literal with constant
org.springframework.http.HttpHeaders.UPGRADE - Replace String literal with constant
org.springframework.http.HttpHeaders.USER_AGENT - Replace String literal with constant
org.springframework.http.HttpHeaders.VARY - Replace String literal with constant
org.springframework.http.HttpHeaders.VIA - Replace String literal with constant
org.springframework.http.HttpHeaders.WARNING - Replace String literal with constant
org.springframework.http.HttpHeaders.WWW_AUTHENTICATE