Skip to content

Commit

Permalink
Merge branch 'rsh/Url_replace_handler' of https://github.com/microsof…
Browse files Browse the repository at this point in the history
…t/kiota-java into rsh/Url_replace_handler
  • Loading branch information
ramsessanchez committed Jul 20, 2023
2 parents 9c628f3 + 5a42ba3 commit d79c30a
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ public class UrlReplaceHandler implements Interceptor {
private UrlReplaceHandlerOption mUrlReplaceHandlerOption;

/**
* Instantiate a GraphTelemetryHandler with default GraphClientOption.
* Instantiate a UrlReplaceHandler with default UrlReplaceHandlerOption.
*/
public UrlReplaceHandler(){
this(new UrlReplaceHandlerOption());
}
/**
* Instantiate a GraphTelemetryHandler with specified GraphClientOption
* @param urlReplaceHandlerOption the specified GraphClientOption for the GraphTelemetryHandler.
* Instantiate a UrlReplaceHandler with specified UrlReplaceHandlerOption
* @param urlReplaceHandlerOption the specified UrlReplaceHandlerOption for the UrlReplaceHandler.
*/
public UrlReplaceHandler(@Nonnull UrlReplaceHandlerOption urlReplaceHandlerOption){
Objects.requireNonNull(urlReplaceHandlerOption);
Expand Down Expand Up @@ -66,15 +66,15 @@ public Response intercept(@Nonnull Chain chain) throws IOException {
return chain.proceed(request);
}
/**
* Gets the GraphClientOption for the GraphTelemetryHandler.
* @return the GraphClientOption for the GraphTelemetryHandler.
* Gets the UrlReplaceHandlerOption for the UrlReplaceHandler.
* @return the UrlReplaceHandlerOption for the UrlReplaceHandler.
*/
public UrlReplaceHandlerOption getUrlReplaceHandlerOption() {
return new UrlReplaceHandlerOption(mUrlReplaceHandlerOption.getReplacementPairs(), mUrlReplaceHandlerOption.isEnabled());
}
/**
* Sets the GraphClientOption for the GraphTelemetryHandler.
* @param urlReplaceHandlerOption the GraphClientOption to set.
* Sets the GraphClientOption for the UrlReplaceHandler.
* @param urlReplaceHandlerOption the UrlReplaceHandlerOption to set.
*/
public void setUrlReplaceHandlerOption(UrlReplaceHandlerOption urlReplaceHandlerOption) {
this.mUrlReplaceHandlerOption = new UrlReplaceHandlerOption(urlReplaceHandlerOption.getReplacementPairs(), urlReplaceHandlerOption.isEnabled());
Expand Down

0 comments on commit d79c30a

Please sign in to comment.