Fixed typo for enum name Postion to Position
diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/H2AsyncClientBuilder.java b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/H2AsyncClientBuilder.java
index fa3f0e0..693af2f 100644
--- a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/H2AsyncClientBuilder.java
+++ b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/H2AsyncClientBuilder.java
@@ -130,45 +130,45 @@
private static class RequestInterceptorEntry {
- enum Postion { FIRST, LAST }
+ enum Position { FIRST, LAST }
- final RequestInterceptorEntry.Postion postion;
+ final RequestInterceptorEntry.Position position;
final HttpRequestInterceptor interceptor;
- private RequestInterceptorEntry(final RequestInterceptorEntry.Postion postion, final HttpRequestInterceptor interceptor) {
- this.postion = postion;
+ private RequestInterceptorEntry(final RequestInterceptorEntry.Position position, final HttpRequestInterceptor interceptor) {
+ this.position = position;
this.interceptor = interceptor;
}
}
private static class ResponseInterceptorEntry {
- enum Postion { FIRST, LAST }
+ enum Position { FIRST, LAST }
- final ResponseInterceptorEntry.Postion postion;
+ final ResponseInterceptorEntry.Position position;
final HttpResponseInterceptor interceptor;
- private ResponseInterceptorEntry(final ResponseInterceptorEntry.Postion postion, final HttpResponseInterceptor interceptor) {
- this.postion = postion;
+ private ResponseInterceptorEntry(final ResponseInterceptorEntry.Position position, final HttpResponseInterceptor interceptor) {
+ this.position = position;
this.interceptor = interceptor;
}
}
private static class ExecInterceptorEntry {
- enum Postion { BEFORE, AFTER, REPLACE, FIRST, LAST }
+ enum Position { BEFORE, AFTER, REPLACE, FIRST, LAST }
- final ExecInterceptorEntry.Postion postion;
+ final ExecInterceptorEntry.Position position;
final String name;
final AsyncExecChainHandler interceptor;
final String existing;
private ExecInterceptorEntry(
- final ExecInterceptorEntry.Postion postion,
+ final ExecInterceptorEntry.Position position,
final String name,
final AsyncExecChainHandler interceptor,
final String existing) {
- this.postion = postion;
+ this.position = position;
this.name = name;
this.interceptor = interceptor;
this.existing = existing;
@@ -275,7 +275,7 @@
if (responseInterceptors == null) {
responseInterceptors = new LinkedList<>();
}
- responseInterceptors.add(new ResponseInterceptorEntry(ResponseInterceptorEntry.Postion.FIRST, interceptor));
+ responseInterceptors.add(new ResponseInterceptorEntry(ResponseInterceptorEntry.Position.FIRST, interceptor));
return this;
}
@@ -287,7 +287,7 @@
if (responseInterceptors == null) {
responseInterceptors = new LinkedList<>();
}
- responseInterceptors.add(new ResponseInterceptorEntry(ResponseInterceptorEntry.Postion.LAST, interceptor));
+ responseInterceptors.add(new ResponseInterceptorEntry(ResponseInterceptorEntry.Position.LAST, interceptor));
return this;
}
@@ -301,7 +301,7 @@
if (execInterceptors == null) {
execInterceptors = new LinkedList<>();
}
- execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Postion.BEFORE, name, interceptor, existing));
+ execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Position.BEFORE, name, interceptor, existing));
return this;
}
@@ -315,7 +315,7 @@
if (execInterceptors == null) {
execInterceptors = new LinkedList<>();
}
- execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Postion.AFTER, name, interceptor, existing));
+ execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Position.AFTER, name, interceptor, existing));
return this;
}
@@ -328,7 +328,7 @@
if (execInterceptors == null) {
execInterceptors = new LinkedList<>();
}
- execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Postion.REPLACE, existing, interceptor, existing));
+ execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Position.REPLACE, existing, interceptor, existing));
return this;
}
@@ -341,7 +341,7 @@
if (execInterceptors == null) {
execInterceptors = new LinkedList<>();
}
- execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Postion.FIRST, name, interceptor, null));
+ execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Position.FIRST, name, interceptor, null));
return this;
}
@@ -354,7 +354,7 @@
if (execInterceptors == null) {
execInterceptors = new LinkedList<>();
}
- execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Postion.LAST, name, interceptor, null));
+ execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Position.LAST, name, interceptor, null));
return this;
}
@@ -366,7 +366,7 @@
if (requestInterceptors == null) {
requestInterceptors = new LinkedList<>();
}
- requestInterceptors.add(new RequestInterceptorEntry(RequestInterceptorEntry.Postion.FIRST, interceptor));
+ requestInterceptors.add(new RequestInterceptorEntry(RequestInterceptorEntry.Position.FIRST, interceptor));
return this;
}
@@ -378,7 +378,7 @@
if (requestInterceptors == null) {
requestInterceptors = new LinkedList<>();
}
- requestInterceptors.add(new RequestInterceptorEntry(RequestInterceptorEntry.Postion.LAST, interceptor));
+ requestInterceptors.add(new RequestInterceptorEntry(RequestInterceptorEntry.Position.LAST, interceptor));
return this;
}
@@ -631,14 +631,14 @@
final HttpProcessorBuilder b = HttpProcessorBuilder.create();
if (requestInterceptors != null) {
for (final RequestInterceptorEntry entry: requestInterceptors) {
- if (entry.postion == RequestInterceptorEntry.Postion.FIRST) {
+ if (entry.position == RequestInterceptorEntry.Position.FIRST) {
b.addFirst(entry.interceptor);
}
}
}
if (responseInterceptors != null) {
for (final ResponseInterceptorEntry entry: responseInterceptors) {
- if (entry.postion == ResponseInterceptorEntry.Postion.FIRST) {
+ if (entry.position == ResponseInterceptorEntry.Position.FIRST) {
b.addFirst(entry.interceptor);
}
}
@@ -658,14 +658,14 @@
}
if (requestInterceptors != null) {
for (final RequestInterceptorEntry entry: requestInterceptors) {
- if (entry.postion == RequestInterceptorEntry.Postion.LAST) {
+ if (entry.position == RequestInterceptorEntry.Position.LAST) {
b.addLast(entry.interceptor);
}
}
}
if (responseInterceptors != null) {
for (final ResponseInterceptorEntry entry: responseInterceptors) {
- if (entry.postion == ResponseInterceptorEntry.Postion.LAST) {
+ if (entry.position == ResponseInterceptorEntry.Position.LAST) {
b.addLast(entry.interceptor);
}
}
@@ -738,7 +738,7 @@
if (execInterceptors != null) {
for (final ExecInterceptorEntry entry: execInterceptors) {
- switch (entry.postion) {
+ switch (entry.position) {
case AFTER:
execChainDefinition.addAfter(entry.existing, entry.interceptor, entry.name);
break;
diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/HttpAsyncClientBuilder.java b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/HttpAsyncClientBuilder.java
index f5699c3..212bc57 100644
--- a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/HttpAsyncClientBuilder.java
+++ b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/HttpAsyncClientBuilder.java
@@ -159,45 +159,45 @@
private static class RequestInterceptorEntry {
- enum Postion { FIRST, LAST }
+ enum Position { FIRST, LAST }
- final RequestInterceptorEntry.Postion postion;
+ final RequestInterceptorEntry.Position position;
final HttpRequestInterceptor interceptor;
- private RequestInterceptorEntry(final RequestInterceptorEntry.Postion postion, final HttpRequestInterceptor interceptor) {
- this.postion = postion;
+ private RequestInterceptorEntry(final RequestInterceptorEntry.Position position, final HttpRequestInterceptor interceptor) {
+ this.position = position;
this.interceptor = interceptor;
}
}
private static class ResponseInterceptorEntry {
- enum Postion { FIRST, LAST }
+ enum Position { FIRST, LAST }
- final ResponseInterceptorEntry.Postion postion;
+ final ResponseInterceptorEntry.Position position;
final HttpResponseInterceptor interceptor;
- private ResponseInterceptorEntry(final ResponseInterceptorEntry.Postion postion, final HttpResponseInterceptor interceptor) {
- this.postion = postion;
+ private ResponseInterceptorEntry(final ResponseInterceptorEntry.Position position, final HttpResponseInterceptor interceptor) {
+ this.position = position;
this.interceptor = interceptor;
}
}
private static class ExecInterceptorEntry {
- enum Postion { BEFORE, AFTER, REPLACE, FIRST, LAST }
+ enum Position { BEFORE, AFTER, REPLACE, FIRST, LAST }
- final ExecInterceptorEntry.Postion postion;
+ final ExecInterceptorEntry.Position position;
final String name;
final AsyncExecChainHandler interceptor;
final String existing;
private ExecInterceptorEntry(
- final ExecInterceptorEntry.Postion postion,
+ final ExecInterceptorEntry.Position position,
final String name,
final AsyncExecChainHandler interceptor,
final String existing) {
- this.postion = postion;
+ this.position = position;
this.name = name;
this.interceptor = interceptor;
this.existing = existing;
@@ -382,7 +382,7 @@
if (responseInterceptors == null) {
responseInterceptors = new LinkedList<>();
}
- responseInterceptors.add(new ResponseInterceptorEntry(ResponseInterceptorEntry.Postion.FIRST, interceptor));
+ responseInterceptors.add(new ResponseInterceptorEntry(ResponseInterceptorEntry.Position.FIRST, interceptor));
return this;
}
@@ -394,7 +394,7 @@
if (responseInterceptors == null) {
responseInterceptors = new LinkedList<>();
}
- responseInterceptors.add(new ResponseInterceptorEntry(ResponseInterceptorEntry.Postion.LAST, interceptor));
+ responseInterceptors.add(new ResponseInterceptorEntry(ResponseInterceptorEntry.Position.LAST, interceptor));
return this;
}
@@ -408,7 +408,7 @@
if (execInterceptors == null) {
execInterceptors = new LinkedList<>();
}
- execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Postion.BEFORE, name, interceptor, existing));
+ execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Position.BEFORE, name, interceptor, existing));
return this;
}
@@ -422,7 +422,7 @@
if (execInterceptors == null) {
execInterceptors = new LinkedList<>();
}
- execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Postion.AFTER, name, interceptor, existing));
+ execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Position.AFTER, name, interceptor, existing));
return this;
}
@@ -435,7 +435,7 @@
if (execInterceptors == null) {
execInterceptors = new LinkedList<>();
}
- execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Postion.REPLACE, existing, interceptor, existing));
+ execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Position.REPLACE, existing, interceptor, existing));
return this;
}
@@ -448,7 +448,7 @@
if (execInterceptors == null) {
execInterceptors = new LinkedList<>();
}
- execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Postion.FIRST, name, interceptor, null));
+ execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Position.FIRST, name, interceptor, null));
return this;
}
@@ -461,7 +461,7 @@
if (execInterceptors == null) {
execInterceptors = new LinkedList<>();
}
- execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Postion.LAST, name, interceptor, null));
+ execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Position.LAST, name, interceptor, null));
return this;
}
@@ -473,7 +473,7 @@
if (requestInterceptors == null) {
requestInterceptors = new LinkedList<>();
}
- requestInterceptors.add(new RequestInterceptorEntry(RequestInterceptorEntry.Postion.FIRST, interceptor));
+ requestInterceptors.add(new RequestInterceptorEntry(RequestInterceptorEntry.Position.FIRST, interceptor));
return this;
}
@@ -485,7 +485,7 @@
if (requestInterceptors == null) {
requestInterceptors = new LinkedList<>();
}
- requestInterceptors.add(new RequestInterceptorEntry(RequestInterceptorEntry.Postion.LAST, interceptor));
+ requestInterceptors.add(new RequestInterceptorEntry(RequestInterceptorEntry.Position.LAST, interceptor));
return this;
}
@@ -781,14 +781,14 @@
final HttpProcessorBuilder b = HttpProcessorBuilder.create();
if (requestInterceptors != null) {
for (final RequestInterceptorEntry entry: requestInterceptors) {
- if (entry.postion == RequestInterceptorEntry.Postion.FIRST) {
+ if (entry.position == RequestInterceptorEntry.Position.FIRST) {
b.addFirst(entry.interceptor);
}
}
}
if (responseInterceptors != null) {
for (final ResponseInterceptorEntry entry: responseInterceptors) {
- if (entry.postion == ResponseInterceptorEntry.Postion.FIRST) {
+ if (entry.position == ResponseInterceptorEntry.Position.FIRST) {
b.addFirst(entry.interceptor);
}
}
@@ -808,14 +808,14 @@
}
if (requestInterceptors != null) {
for (final RequestInterceptorEntry entry: requestInterceptors) {
- if (entry.postion == RequestInterceptorEntry.Postion.LAST) {
+ if (entry.position == RequestInterceptorEntry.Position.LAST) {
b.addLast(entry.interceptor);
}
}
}
if (responseInterceptors != null) {
for (final ResponseInterceptorEntry entry: responseInterceptors) {
- if (entry.postion == ResponseInterceptorEntry.Postion.LAST) {
+ if (entry.position == ResponseInterceptorEntry.Position.LAST) {
b.addLast(entry.interceptor);
}
}
@@ -945,7 +945,7 @@
if (execInterceptors != null) {
for (final ExecInterceptorEntry entry: execInterceptors) {
- switch (entry.postion) {
+ switch (entry.position) {
case AFTER:
execChainDefinition.addAfter(entry.existing, entry.interceptor, entry.name);
break;
diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/classic/HttpClientBuilder.java b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/classic/HttpClientBuilder.java
index 2a6ad0e..77252dd 100644
--- a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/classic/HttpClientBuilder.java
+++ b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/classic/HttpClientBuilder.java
@@ -144,45 +144,45 @@
private static class RequestInterceptorEntry {
- enum Postion { FIRST, LAST }
+ enum Position { FIRST, LAST }
- final Postion postion;
+ final RequestInterceptorEntry.Position position;
final HttpRequestInterceptor interceptor;
- private RequestInterceptorEntry(final Postion postion, final HttpRequestInterceptor interceptor) {
- this.postion = postion;
+ private RequestInterceptorEntry(final RequestInterceptorEntry.Position position, final HttpRequestInterceptor interceptor) {
+ this.position = position;
this.interceptor = interceptor;
}
}
private static class ResponseInterceptorEntry {
- enum Postion { FIRST, LAST }
+ enum Position { FIRST, LAST }
- final Postion postion;
+ final ResponseInterceptorEntry.Position position;
final HttpResponseInterceptor interceptor;
- private ResponseInterceptorEntry(final Postion postion, final HttpResponseInterceptor interceptor) {
- this.postion = postion;
+ private ResponseInterceptorEntry(final ResponseInterceptorEntry.Position position, final HttpResponseInterceptor interceptor) {
+ this.position = position;
this.interceptor = interceptor;
}
}
private static class ExecInterceptorEntry {
- enum Postion { BEFORE, AFTER, REPLACE, FIRST, LAST }
+ enum Position { BEFORE, AFTER, REPLACE, FIRST, LAST }
- final Postion postion;
+ final ExecInterceptorEntry.Position position;
final String name;
final ExecChainHandler interceptor;
final String existing;
private ExecInterceptorEntry(
- final Postion postion,
+ final ExecInterceptorEntry.Position position,
final String name,
final ExecChainHandler interceptor,
final String existing) {
- this.postion = postion;
+ this.position = position;
this.name = name;
this.interceptor = interceptor;
this.existing = existing;
@@ -369,7 +369,7 @@
if (responseInterceptors == null) {
responseInterceptors = new LinkedList<>();
}
- responseInterceptors.add(new ResponseInterceptorEntry(ResponseInterceptorEntry.Postion.FIRST, interceptor));
+ responseInterceptors.add(new ResponseInterceptorEntry(ResponseInterceptorEntry.Position.FIRST, interceptor));
return this;
}
@@ -381,7 +381,7 @@
if (responseInterceptors == null) {
responseInterceptors = new LinkedList<>();
}
- responseInterceptors.add(new ResponseInterceptorEntry(ResponseInterceptorEntry.Postion.LAST, interceptor));
+ responseInterceptors.add(new ResponseInterceptorEntry(ResponseInterceptorEntry.Position.LAST, interceptor));
return this;
}
@@ -393,7 +393,7 @@
if (requestInterceptors == null) {
requestInterceptors = new LinkedList<>();
}
- requestInterceptors.add(new RequestInterceptorEntry(RequestInterceptorEntry.Postion.FIRST, interceptor));
+ requestInterceptors.add(new RequestInterceptorEntry(RequestInterceptorEntry.Position.FIRST, interceptor));
return this;
}
@@ -405,7 +405,7 @@
if (requestInterceptors == null) {
requestInterceptors = new LinkedList<>();
}
- requestInterceptors.add(new RequestInterceptorEntry(RequestInterceptorEntry.Postion.LAST, interceptor));
+ requestInterceptors.add(new RequestInterceptorEntry(RequestInterceptorEntry.Position.LAST, interceptor));
return this;
}
@@ -419,7 +419,7 @@
if (execInterceptors == null) {
execInterceptors = new LinkedList<>();
}
- execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Postion.BEFORE, name, interceptor, existing));
+ execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Position.BEFORE, name, interceptor, existing));
return this;
}
@@ -433,7 +433,7 @@
if (execInterceptors == null) {
execInterceptors = new LinkedList<>();
}
- execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Postion.AFTER, name, interceptor, existing));
+ execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Position.AFTER, name, interceptor, existing));
return this;
}
@@ -446,7 +446,7 @@
if (execInterceptors == null) {
execInterceptors = new LinkedList<>();
}
- execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Postion.REPLACE, existing, interceptor, existing));
+ execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Position.REPLACE, existing, interceptor, existing));
return this;
}
@@ -459,7 +459,7 @@
if (execInterceptors == null) {
execInterceptors = new LinkedList<>();
}
- execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Postion.FIRST, name, interceptor, null));
+ execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Position.FIRST, name, interceptor, null));
return this;
}
@@ -472,7 +472,7 @@
if (execInterceptors == null) {
execInterceptors = new LinkedList<>();
}
- execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Postion.LAST, name, interceptor, null));
+ execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Position.LAST, name, interceptor, null));
return this;
}
@@ -807,14 +807,14 @@
final HttpProcessorBuilder b = HttpProcessorBuilder.create();
if (requestInterceptors != null) {
for (final RequestInterceptorEntry entry: requestInterceptors) {
- if (entry.postion == RequestInterceptorEntry.Postion.FIRST) {
+ if (entry.position == RequestInterceptorEntry.Position.FIRST) {
b.addFirst(entry.interceptor);
}
}
}
if (responseInterceptors != null) {
for (final ResponseInterceptorEntry entry: responseInterceptors) {
- if (entry.postion == ResponseInterceptorEntry.Postion.FIRST) {
+ if (entry.position == ResponseInterceptorEntry.Position.FIRST) {
b.addFirst(entry.interceptor);
}
}
@@ -837,14 +837,14 @@
}
if (requestInterceptors != null) {
for (final RequestInterceptorEntry entry: requestInterceptors) {
- if (entry.postion == RequestInterceptorEntry.Postion.LAST) {
+ if (entry.position == RequestInterceptorEntry.Position.LAST) {
b.addLast(entry.interceptor);
}
}
}
if (responseInterceptors != null) {
for (final ResponseInterceptorEntry entry: responseInterceptors) {
- if (entry.postion == ResponseInterceptorEntry.Postion.LAST) {
+ if (entry.position == ResponseInterceptorEntry.Position.LAST) {
b.addLast(entry.interceptor);
}
}
@@ -916,7 +916,7 @@
if (execInterceptors != null) {
for (final ExecInterceptorEntry entry: execInterceptors) {
- switch (entry.postion) {
+ switch (entry.position) {
case AFTER:
execChainDefinition.addAfter(entry.existing, entry.interceptor, entry.name);
break;