Polish "Move UriModifyingOperationPreprocessor to core project"

Closes gh-493
This commit is contained in:
Andy Wilkinson
2018-03-28 11:38:10 +01:00
parent 37f313c766
commit e7d2d44a05
8 changed files with 35 additions and 16 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2014-2015 the original author or authors.
* Copyright 2014-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -151,4 +151,15 @@ public final class Preprocessors {
return new ParametersModifyingOperationPreprocessor();
}
/**
* Returns a {@code UriModifyingOperationPreprocessor} that will modify URIs in the
* request or response by changing one or more of their host, scheme, and port.
*
* @return the preprocessor
* @since 2.0.1
*/
public static UriModifyingOperationPreprocessor modifyUris() {
return new UriModifyingOperationPreprocessor();
}
}

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2014-2017 the original author or authors.
* Copyright 2014-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -51,7 +51,7 @@ import org.springframework.web.util.UriComponentsBuilder;
* </ul>
*
* @author Andy Wilkinson
* @since 1.2.0
* @since 2.0.1
*/
public class UriModifyingOperationPreprocessor implements OperationPreprocessor {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2014-2016 the original author or authors.
* Copyright 2014-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.