Skip to content

Commit

Permalink
Merge pull request #427 from BeliefYou8/UAVStackXingshengliLLL
Browse files Browse the repository at this point in the history
Support for multiple casing functions of response
  • Loading branch information
zxy0728 authored Oct 26, 2018
2 parents d044b85 + 3e2ae9a commit 68f5cac
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@

import com.creditease.agent.helpers.ReflectionHelper;

public class TransformWapperUtil {
public class TransformWrapperUtil {

/*
* 为response脱壳,将Wapper脱到指定的壳,若该Wapper不包含指定的壳,则脱到原生壳为止
* 为response脱壳,将Wrapper脱到指定的壳,若该Wrapper不包含指定的壳,则脱到原生壳为止
*/
public static HttpServletResponse moveWapper(String resWapperName, HttpServletResponse response) {
public static HttpServletResponse moveWrapper(String resWrapperName, HttpServletResponse response) {

while (HttpServletResponseWrapper.class.isAssignableFrom(response.getClass())) {

if (!resWapperName.equals(response.getClass().getName())) {
if (!resWrapperName.equals(response.getClass().getName())) {

response = (HttpServletResponse) ReflectionHelper.getField(response.getClass(), response, "response");
}
Expand Down

0 comments on commit 68f5cac

Please sign in to comment.