@Test public void build_actionNotSecured_securityHeaderIsNotSet() { RestAction<Void> action = new UnsecuredRestAction(GET, RELATIVE_PATH); factory.buildHeaders(requestBuilder, action, SECURITY_TOKEN); verify(requestBuilder, never()).setHeader(eq(XSRF_HEADER_NAME), anyString()); }
@Override public void buildHeaders(RequestBuilder requestBuilder, RestAction<?> action, String securityToken) { List<HttpParameter> parameters = buildParameters(action, securityToken); addHeaders(requestBuilder, parameters); }
DefaultHeaderFactory implements HeaderFactory { @Override public void buildHeaders(RequestBuilder requestBuilder, RestAction<?> action, String securityToken) { List<HttpParameter> parameters = buildParameters(action, securityToken); addHeaders(requestBuilder, parameters); } }
DefaultHeaderFactory implements HeaderFactory { @Override public void buildHeaders(RequestBuilder requestBuilder, RestAction<?> action, String securityToken) { List<HttpParameter> parameters = buildParameters(action, securityToken); addHeaders(requestBuilder, parameters); } @Inject  DefaultHeaderFactory(
            @GlobalHeaderParams RestParameterBindings globalParams,
            @XsrfHeaderName String securityHeaderName,
            @RestApplicationPath Provider<String> applicationPathProvider); }
DefaultHeaderFactory implements HeaderFactory { @Override public void buildHeaders(RequestBuilder requestBuilder, RestAction<?> action, String securityToken) { List<HttpParameter> parameters = buildParameters(action, securityToken); addHeaders(requestBuilder, parameters); } @Inject  DefaultHeaderFactory(
            @GlobalHeaderParams RestParameterBindings globalParams,
            @XsrfHeaderName String securityHeaderName,
            @RestApplicationPath Provider<String> applicationPathProvider); @Override void buildHeaders(RequestBuilder requestBuilder, RestAction<?> action, String securityToken); }
DefaultHeaderFactory implements HeaderFactory { @Override public void buildHeaders(RequestBuilder requestBuilder, RestAction<?> action, String securityToken) { List<HttpParameter> parameters = buildParameters(action, securityToken); addHeaders(requestBuilder, parameters); } @Inject  DefaultHeaderFactory(
            @GlobalHeaderParams RestParameterBindings globalParams,
            @XsrfHeaderName String securityHeaderName,
            @RestApplicationPath Provider<String> applicationPathProvider); @Override void buildHeaders(RequestBuilder requestBuilder, RestAction<?> action, String securityToken);  }