@Test public void setParamsEncodedShouldSetEncodedOnAllParamConfigs() throws Exception { MethodConfigBuilder toTest = newToTest(); assertSame(toTest, toTest.setParamsEncoded(true)); verify(mockParamConfigBuilder1).setEncoded(true); verify(mockParamConfigBuilder2).setEncoded(true); }
public MethodConfigBuilder setParamsEncoded(boolean encoded) { for (ParamConfigBuilder b : methodParamConfigBuilders) { b.setEncoded(encoded); } return this; }
DefaultMethodConfigBuilder extends ConfigBuilder implements MethodConfigBuilder { public MethodConfigBuilder setParamsEncoded(boolean encoded) { for (ParamConfigBuilder b : methodParamConfigBuilders) { b.setEncoded(encoded); } return this; } }
DefaultMethodConfigBuilder extends ConfigBuilder implements MethodConfigBuilder { public MethodConfigBuilder setParamsEncoded(boolean encoded) { for (ParamConfigBuilder b : methodParamConfigBuilders) { b.setEncoded(encoded); } return this; } DefaultMethodConfigBuilder(InterfaceConfigBuilder parent, Method method, CRestConfig crestConfig, ComponentRegistry<String,Deserializer> mimeDeserializerRegistry, ComponentRegistry<Class<?>, Serializer> classSerializerRegistry); }
DefaultMethodConfigBuilder extends ConfigBuilder implements MethodConfigBuilder { public MethodConfigBuilder setParamsEncoded(boolean encoded) { for (ParamConfigBuilder b : methodParamConfigBuilders) { b.setEncoded(encoded); } return this; } DefaultMethodConfigBuilder(InterfaceConfigBuilder parent, Method method, CRestConfig crestConfig, ComponentRegistry<String,Deserializer> mimeDeserializerRegistry, ComponentRegistry<Class<?>, Serializer> classSerializerRegistry); MethodConfig build(); ParamConfigBuilder startParamConfig(int index); ParamConfigBuilder startExtraParamConfig(); MethodConfigBuilder setConsumes(String... mimeTypes); MethodConfigBuilder setCharset(Charset charset); MethodConfigBuilder setProduces(String contentType); MethodConfigBuilder appendPath(String path); MethodConfigBuilder setEndPoint(String endPoint); MethodConfigBuilder setType(MethodType meth); MethodConfigBuilder setSocketTimeout(int socketTimeout); MethodConfigBuilder setConnectionTimeout(int connectionTimeout); MethodConfigBuilder setDeserializer(Class<? extends Deserializer> deserializerClass); MethodConfigBuilder setRequestInterceptor(Class<? extends RequestInterceptor> requestInterceptorClass); MethodConfigBuilder setResponseHandler(Class<? extends ResponseHandler> responseHandlerClass); MethodConfigBuilder setErrorHandler(Class<? extends ErrorHandler> errorHandlerClass); MethodConfigBuilder setRetryHandler(Class<? extends RetryHandler> retryHandlerClass); MethodConfigBuilder setEntityWriter(Class<? extends EntityWriter> entityWriterClass); MethodConfigBuilder setParamsSerializer(Class<? extends Serializer> serializerClass); MethodConfigBuilder setParamsEncoded(boolean encoded); MethodConfigBuilder setParamsListSeparator(String listSeparator); @Override String toString(); }
DefaultMethodConfigBuilder extends ConfigBuilder implements MethodConfigBuilder { public MethodConfigBuilder setParamsEncoded(boolean encoded) { for (ParamConfigBuilder b : methodParamConfigBuilders) { b.setEncoded(encoded); } return this; } DefaultMethodConfigBuilder(InterfaceConfigBuilder parent, Method method, CRestConfig crestConfig, ComponentRegistry<String,Deserializer> mimeDeserializerRegistry, ComponentRegistry<Class<?>, Serializer> classSerializerRegistry); MethodConfig build(); ParamConfigBuilder startParamConfig(int index); ParamConfigBuilder startExtraParamConfig(); MethodConfigBuilder setConsumes(String... mimeTypes); MethodConfigBuilder setCharset(Charset charset); MethodConfigBuilder setProduces(String contentType); MethodConfigBuilder appendPath(String path); MethodConfigBuilder setEndPoint(String endPoint); MethodConfigBuilder setType(MethodType meth); MethodConfigBuilder setSocketTimeout(int socketTimeout); MethodConfigBuilder setConnectionTimeout(int connectionTimeout); MethodConfigBuilder setDeserializer(Class<? extends Deserializer> deserializerClass); MethodConfigBuilder setRequestInterceptor(Class<? extends RequestInterceptor> requestInterceptorClass); MethodConfigBuilder setResponseHandler(Class<? extends ResponseHandler> responseHandlerClass); MethodConfigBuilder setErrorHandler(Class<? extends ErrorHandler> errorHandlerClass); MethodConfigBuilder setRetryHandler(Class<? extends RetryHandler> retryHandlerClass); MethodConfigBuilder setEntityWriter(Class<? extends EntityWriter> entityWriterClass); MethodConfigBuilder setParamsSerializer(Class<? extends Serializer> serializerClass); MethodConfigBuilder setParamsEncoded(boolean encoded); MethodConfigBuilder setParamsListSeparator(String listSeparator); @Override String toString();  }