@Test public void build_notEmptyRestApplicationPath_headerIsNotSet(@GlobalHeaderParams RestParameterBindings bindings) { factory = new DefaultHeaderFactory(bindings, XSRF_HEADER_NAME, applicationPathProvider); UnsecuredRestAction action = new UnsecuredRestAction(GET, RELATIVE_PATH); factory.buildHeaders(requestBuilder, action, ""); verify(requestBuilder).setHeader(eq(RpcRequestBuilder.MODULE_BASE_HEADER), eq(APPLICATION_PATH)); }
@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);  }