mirror of
https://github.com/jlengrand/vert.x.git
synced 2026-03-10 08:51:19 +00:00
Use @GenIgnore instead of @SuppressWarning
This commit is contained in:
@@ -231,10 +231,10 @@ public interface Context {
|
||||
@Nullable
|
||||
Handler<Throwable> exceptionHandler();
|
||||
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
void addCloseHook(Closeable hook);
|
||||
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
void removeCloseHook(Closeable hook);
|
||||
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
package io.vertx.core;
|
||||
|
||||
import io.vertx.codegen.annotations.Fluent;
|
||||
import io.vertx.codegen.annotations.GenIgnore;
|
||||
import io.vertx.codegen.annotations.Nullable;
|
||||
import io.vertx.codegen.annotations.VertxGen;
|
||||
import io.vertx.core.http.CaseInsensitiveHeaders;
|
||||
@@ -42,7 +43,7 @@ public interface MultiMap extends Iterable<Map.Entry<String, String>> {
|
||||
return new CaseInsensitiveHeaders();
|
||||
}
|
||||
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
String get(CharSequence name);
|
||||
|
||||
/**
|
||||
@@ -66,7 +67,7 @@ public interface MultiMap extends Iterable<Map.Entry<String, String>> {
|
||||
/**
|
||||
* Like {@link #getAll(String)} but accepting a {@code CharSequence} as a parameter
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
List<String> getAll(CharSequence name);
|
||||
|
||||
/**
|
||||
@@ -75,7 +76,7 @@ public interface MultiMap extends Iterable<Map.Entry<String, String>> {
|
||||
* @return A immutable {@link java.util.List} of the name-value entries, which will be
|
||||
* empty if no pairs are found
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
List<Map.Entry<String, String>> entries();
|
||||
|
||||
/**
|
||||
@@ -89,7 +90,7 @@ public interface MultiMap extends Iterable<Map.Entry<String, String>> {
|
||||
/**
|
||||
* Like {@link #contains(String)} but accepting a {@code CharSequence} as a parameter
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
boolean contains(CharSequence name);
|
||||
|
||||
/**
|
||||
@@ -109,7 +110,7 @@ public interface MultiMap extends Iterable<Map.Entry<String, String>> {
|
||||
/**
|
||||
* Like {@link #contains(String, String, boolean)} but accepting {@code CharSequence} parameters.
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
default boolean contains(CharSequence name, CharSequence value, boolean caseInsensitive) {
|
||||
Predicate<String> predicate;
|
||||
if (caseInsensitive) {
|
||||
@@ -146,7 +147,7 @@ public interface MultiMap extends Iterable<Map.Entry<String, String>> {
|
||||
/**
|
||||
* Like {@link #add(String, String)} but accepting {@code CharSequence} as parameters
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
@Fluent
|
||||
MultiMap add(CharSequence name, CharSequence value);
|
||||
|
||||
@@ -157,14 +158,14 @@ public interface MultiMap extends Iterable<Map.Entry<String, String>> {
|
||||
* @param values The values
|
||||
* @return a reference to this, so the API can be used fluently
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
@Fluent
|
||||
MultiMap add(String name, Iterable<String> values);
|
||||
|
||||
/**
|
||||
* Like {@link #add(String, Iterable)} but accepting {@code CharSequence} as parameters
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
@Fluent
|
||||
MultiMap add(CharSequence name, Iterable<CharSequence> values);
|
||||
|
||||
@@ -181,7 +182,7 @@ public interface MultiMap extends Iterable<Map.Entry<String, String>> {
|
||||
*
|
||||
* @return a reference to this, so the API can be used fluently
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
@Fluent
|
||||
MultiMap addAll(Map<String, String> headers);
|
||||
|
||||
@@ -200,7 +201,7 @@ public interface MultiMap extends Iterable<Map.Entry<String, String>> {
|
||||
/**
|
||||
* Like {@link #set(String, String)} but accepting {@code CharSequence} as parameters
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
@Fluent
|
||||
MultiMap set(CharSequence name, CharSequence value);
|
||||
|
||||
@@ -211,14 +212,14 @@ public interface MultiMap extends Iterable<Map.Entry<String, String>> {
|
||||
* @param values The values of the headers being set
|
||||
* @return a reference to this, so the API can be used fluently
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
@Fluent
|
||||
MultiMap set(String name, Iterable<String> values);
|
||||
|
||||
/**
|
||||
* Like {@link #set(String, Iterable)} but accepting {@code CharSequence} as parameters
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
@Fluent
|
||||
MultiMap set(CharSequence name, Iterable<CharSequence> values);
|
||||
|
||||
@@ -235,7 +236,7 @@ public interface MultiMap extends Iterable<Map.Entry<String, String>> {
|
||||
*
|
||||
* @return a reference to this, so the API can be used fluently
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
@Fluent
|
||||
MultiMap setAll(Map<String, String> headers);
|
||||
|
||||
@@ -251,7 +252,7 @@ public interface MultiMap extends Iterable<Map.Entry<String, String>> {
|
||||
/**
|
||||
* Like {@link #remove(String)} but accepting {@code CharSequence} as parameters
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
@Fluent
|
||||
MultiMap remove(CharSequence name);
|
||||
|
||||
|
||||
@@ -319,7 +319,7 @@ public interface Vertx extends Measured {
|
||||
*
|
||||
* @param verticle the verticle instance to deploy.
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
void deployVerticle(Verticle verticle);
|
||||
|
||||
/**
|
||||
@@ -333,7 +333,7 @@ public interface Vertx extends Measured {
|
||||
* @param verticle the verticle instance to deploy
|
||||
* @param completionHandler a handler which will be notified when the deployment is complete
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
void deployVerticle(Verticle verticle, Handler<AsyncResult<String>> completionHandler);
|
||||
|
||||
/**
|
||||
@@ -343,7 +343,7 @@ public interface Vertx extends Measured {
|
||||
* @param verticle the verticle instance to deploy
|
||||
* @param options the deployment options.
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
void deployVerticle(Verticle verticle, DeploymentOptions options);
|
||||
|
||||
/**
|
||||
@@ -362,7 +362,7 @@ public interface Vertx extends Measured {
|
||||
* <p>
|
||||
* Note that the supplier will be invoked on the caller thread.
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
void deployVerticle(Supplier<Verticle> verticleSupplier, DeploymentOptions options);
|
||||
|
||||
/**
|
||||
@@ -373,7 +373,7 @@ public interface Vertx extends Measured {
|
||||
* @param options the deployment options.
|
||||
* @param completionHandler a handler which will be notified when the deployment is complete
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
void deployVerticle(Verticle verticle, DeploymentOptions options, Handler<AsyncResult<String>> completionHandler);
|
||||
|
||||
/**
|
||||
@@ -392,7 +392,7 @@ public interface Vertx extends Measured {
|
||||
* <p>
|
||||
* Note that the supplier will be invoked on the caller thread.
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
void deployVerticle(Supplier<Verticle> verticleSupplier, DeploymentOptions options, Handler<AsyncResult<String>> completionHandler);
|
||||
|
||||
/**
|
||||
@@ -468,7 +468,7 @@ public interface Vertx extends Measured {
|
||||
*
|
||||
* @param factory the factory to register
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
void registerVerticleFactory(VerticleFactory factory);
|
||||
|
||||
/**
|
||||
@@ -476,7 +476,7 @@ public interface Vertx extends Measured {
|
||||
*
|
||||
* @param factory the factory to unregister
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
void unregisterVerticleFactory(VerticleFactory factory);
|
||||
|
||||
/**
|
||||
@@ -484,7 +484,7 @@ public interface Vertx extends Measured {
|
||||
*
|
||||
* @return the set of verticle factories
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
Set<VerticleFactory> verticleFactories();
|
||||
|
||||
/**
|
||||
@@ -528,7 +528,7 @@ public interface Vertx extends Measured {
|
||||
*
|
||||
* @return the EventLoopGroup
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
EventLoopGroup nettyEventLoopGroup();
|
||||
|
||||
/**
|
||||
|
||||
@@ -88,7 +88,7 @@ public interface Buffer extends ClusterSerializable, Shareable {
|
||||
* @param bytes the byte array
|
||||
* @return the buffer
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
static Buffer buffer(byte[] bytes) {
|
||||
return factory.buffer(bytes);
|
||||
}
|
||||
@@ -110,7 +110,7 @@ public interface Buffer extends ClusterSerializable, Shareable {
|
||||
* @param byteBuf the Netty ByteBuf
|
||||
* @return the buffer
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
static Buffer buffer(ByteBuf byteBuf) {
|
||||
return factory.buffer(byteBuf);
|
||||
}
|
||||
@@ -128,7 +128,7 @@ public interface Buffer extends ClusterSerializable, Shareable {
|
||||
/**
|
||||
* Returns a {@code String} representation of the Buffer with the encoding specified by {@code enc}
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
String toString(Charset enc);
|
||||
|
||||
/**
|
||||
@@ -270,14 +270,14 @@ public interface Buffer extends ClusterSerializable, Shareable {
|
||||
/**
|
||||
* Returns a copy of the entire Buffer as a {@code byte[]}
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
byte[] getBytes();
|
||||
|
||||
/**
|
||||
* Returns a copy of a sub-sequence the Buffer as a {@code byte[]} starting at position {@code start}
|
||||
* and ending at position {@code end - 1}
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
byte[] getBytes(int start, int end);
|
||||
|
||||
/**
|
||||
@@ -286,7 +286,7 @@ public interface Buffer extends ClusterSerializable, Shareable {
|
||||
* @param dst the destination byte array
|
||||
* @throws IndexOutOfBoundsException if the content of the Buffer cannot fit into the destination byte array
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
@Fluent
|
||||
Buffer getBytes(byte[] dst);
|
||||
|
||||
@@ -296,7 +296,7 @@ public interface Buffer extends ClusterSerializable, Shareable {
|
||||
* @param dst the destination byte array
|
||||
* @throws IndexOutOfBoundsException if the content of the Buffer cannot fit into the destination byte array
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
@Fluent
|
||||
Buffer getBytes(byte[] dst, int dstIndex);
|
||||
|
||||
@@ -307,7 +307,7 @@ public interface Buffer extends ClusterSerializable, Shareable {
|
||||
* @param dst the destination byte array
|
||||
* @throws IndexOutOfBoundsException if the content of the Buffer cannot fit into the destination byte array
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
@Fluent
|
||||
Buffer getBytes(int start, int end, byte[] dst);
|
||||
|
||||
@@ -318,7 +318,7 @@ public interface Buffer extends ClusterSerializable, Shareable {
|
||||
* @param dst the destination byte array
|
||||
* @throws IndexOutOfBoundsException if the content of the Buffer cannot fit into the destination byte array
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
@Fluent
|
||||
Buffer getBytes(int start, int end, byte[] dst, int dstIndex);
|
||||
|
||||
@@ -360,7 +360,7 @@ public interface Buffer extends ClusterSerializable, Shareable {
|
||||
* Appends the specified {@code byte[]} to the end of the Buffer. The buffer will expand as necessary to accommodate any bytes written.<p>
|
||||
* Returns a reference to {@code this} so multiple operations can be appended together.
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
@Fluent
|
||||
Buffer appendBytes(byte[] bytes);
|
||||
|
||||
@@ -369,7 +369,7 @@ public interface Buffer extends ClusterSerializable, Shareable {
|
||||
* The buffer will expand as necessary to accommodate any bytes written.<p>
|
||||
* Returns a reference to {@code this} so multiple operations can be appended together.
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
@Fluent
|
||||
Buffer appendBytes(byte[] bytes, int offset, int len);
|
||||
|
||||
@@ -631,7 +631,7 @@ public interface Buffer extends ClusterSerializable, Shareable {
|
||||
* Sets the bytes at position {@code pos} in the Buffer to the bytes represented by the {@code ByteBuffer b}.<p>
|
||||
* The buffer will expand as necessary to accommodate any value written.
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
@Fluent
|
||||
Buffer setBytes(int pos, ByteBuffer b);
|
||||
|
||||
@@ -639,7 +639,7 @@ public interface Buffer extends ClusterSerializable, Shareable {
|
||||
* Sets the bytes at position {@code pos} in the Buffer to the bytes represented by the {@code byte[] b}.<p>
|
||||
* The buffer will expand as necessary to accommodate any value written.
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
@Fluent
|
||||
Buffer setBytes(int pos, byte[] b);
|
||||
|
||||
@@ -647,7 +647,7 @@ public interface Buffer extends ClusterSerializable, Shareable {
|
||||
* Sets the given number of bytes at position {@code pos} in the Buffer to the bytes represented by the {@code byte[] b}.<p></p>
|
||||
* The buffer will expand as necessary to accommodate any value written.
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
@Fluent
|
||||
Buffer setBytes(int pos, byte[] b, int offset, int len);
|
||||
|
||||
@@ -696,7 +696,7 @@ public interface Buffer extends ClusterSerializable, Shareable {
|
||||
* The returned {@code ByteBuf} might have its {@code readerIndex > 0}
|
||||
* This method is meant for internal use only.<p>
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
ByteBuf getByteBuf();
|
||||
|
||||
@GenIgnore
|
||||
|
||||
@@ -198,7 +198,7 @@ public interface EventBus extends Measured {
|
||||
* @param codec the message codec to register
|
||||
* @return a reference to this, so the API can be used fluently
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
EventBus registerCodec(MessageCodec codec);
|
||||
|
||||
/**
|
||||
@@ -207,7 +207,7 @@ public interface EventBus extends Measured {
|
||||
* @param name the name of the codec
|
||||
* @return a reference to this, so the API can be used fluently
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
EventBus unregisterCodec(String name);
|
||||
|
||||
/**
|
||||
|
||||
@@ -11,13 +11,10 @@
|
||||
|
||||
package io.vertx.core.http;
|
||||
|
||||
import io.vertx.codegen.annotations.Nullable;
|
||||
import io.vertx.codegen.annotations.*;
|
||||
import io.vertx.core.Handler;
|
||||
import io.vertx.core.MultiMap;
|
||||
import io.vertx.core.buffer.Buffer;
|
||||
import io.vertx.codegen.annotations.CacheReturn;
|
||||
import io.vertx.codegen.annotations.Fluent;
|
||||
import io.vertx.codegen.annotations.VertxGen;
|
||||
import io.vertx.core.streams.ReadStream;
|
||||
import io.vertx.core.streams.WriteStream;
|
||||
|
||||
@@ -171,7 +168,7 @@ public interface HttpClientRequest extends WriteStream<Buffer>, ReadStream<HttpC
|
||||
/**
|
||||
* Like {@link #putHeader(String, String)} but using CharSequence
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
@Fluent
|
||||
HttpClientRequest putHeader(CharSequence name, CharSequence value);
|
||||
|
||||
@@ -182,14 +179,14 @@ public interface HttpClientRequest extends WriteStream<Buffer>, ReadStream<HttpC
|
||||
* @param values The header values
|
||||
* @return @return a reference to this, so the API can be used fluently
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
@Fluent
|
||||
HttpClientRequest putHeader(String name, Iterable<String> values);
|
||||
|
||||
/**
|
||||
* Like {@link #putHeader(String, Iterable)} but using CharSequence
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
@Fluent
|
||||
HttpClientRequest putHeader(CharSequence name, Iterable<CharSequence> values);
|
||||
|
||||
|
||||
@@ -11,10 +11,7 @@
|
||||
|
||||
package io.vertx.core.http;
|
||||
|
||||
import io.vertx.codegen.annotations.CacheReturn;
|
||||
import io.vertx.codegen.annotations.Fluent;
|
||||
import io.vertx.codegen.annotations.Nullable;
|
||||
import io.vertx.codegen.annotations.VertxGen;
|
||||
import io.vertx.codegen.annotations.*;
|
||||
import io.vertx.core.Handler;
|
||||
import io.vertx.core.MultiMap;
|
||||
import io.vertx.core.buffer.Buffer;
|
||||
@@ -90,7 +87,7 @@ public interface HttpClientResponse extends ReadStream<Buffer> {
|
||||
* @param headerName the header name
|
||||
* @return the header value
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
String getHeader(CharSequence headerName);
|
||||
|
||||
/**
|
||||
|
||||
@@ -254,7 +254,7 @@ public interface HttpConnection {
|
||||
* not SSL.
|
||||
* @see javax.net.ssl.SSLSession
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
SSLSession sslSession();
|
||||
|
||||
/**
|
||||
|
||||
@@ -139,7 +139,7 @@ public interface HttpServerRequest extends ReadStream<Buffer> {
|
||||
* @param headerName the header name
|
||||
* @return the header value
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
String getHeader(CharSequence headerName);
|
||||
|
||||
/**
|
||||
@@ -175,7 +175,7 @@ public interface HttpServerRequest extends ReadStream<Buffer> {
|
||||
* not SSL.
|
||||
* @see javax.net.ssl.SSLSession
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
SSLSession sslSession();
|
||||
|
||||
/**
|
||||
|
||||
@@ -11,10 +11,7 @@
|
||||
|
||||
package io.vertx.core.http;
|
||||
|
||||
import io.vertx.codegen.annotations.CacheReturn;
|
||||
import io.vertx.codegen.annotations.Fluent;
|
||||
import io.vertx.codegen.annotations.Nullable;
|
||||
import io.vertx.codegen.annotations.VertxGen;
|
||||
import io.vertx.codegen.annotations.*;
|
||||
import io.vertx.core.AsyncResult;
|
||||
import io.vertx.core.Handler;
|
||||
import io.vertx.core.MultiMap;
|
||||
@@ -128,21 +125,21 @@ public interface HttpServerResponse extends WriteStream<Buffer> {
|
||||
/**
|
||||
* Like {@link #putHeader(String, String)} but using CharSequence
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
@Fluent
|
||||
HttpServerResponse putHeader(CharSequence name, CharSequence value);
|
||||
|
||||
/**
|
||||
* Like {@link #putHeader(String, String)} but providing multiple values via a String Iterable
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
@Fluent
|
||||
HttpServerResponse putHeader(String name, Iterable<String> values);
|
||||
|
||||
/**
|
||||
* Like {@link #putHeader(String, Iterable)} but with CharSequence Iterable
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
@Fluent
|
||||
HttpServerResponse putHeader(CharSequence name, Iterable<CharSequence> values);
|
||||
|
||||
@@ -165,21 +162,21 @@ public interface HttpServerResponse extends WriteStream<Buffer> {
|
||||
/**
|
||||
* Like {@link #putTrailer(String, String)} but using CharSequence
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
@Fluent
|
||||
HttpServerResponse putTrailer(CharSequence name, CharSequence value);
|
||||
|
||||
/**
|
||||
* Like {@link #putTrailer(String, String)} but providing multiple values via a String Iterable
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
@Fluent
|
||||
HttpServerResponse putTrailer(String name, Iterable<String> values);
|
||||
|
||||
/**
|
||||
* Like {@link #putTrailer(String, Iterable)} but with CharSequence Iterable
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
@Fluent
|
||||
HttpServerResponse putTrailer(CharSequence name, Iterable<CharSequence> value);
|
||||
|
||||
|
||||
@@ -131,7 +131,7 @@ public interface ServerWebSocket extends WebSocketBase {
|
||||
* not SSL.
|
||||
* @see javax.net.ssl.SSLSession
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
SSLSession sslSession();
|
||||
|
||||
/**
|
||||
|
||||
@@ -284,7 +284,7 @@ public interface WebSocketBase extends ReadStream<Buffer>, WriteStream<Buffer> {
|
||||
* not SSL.
|
||||
* @see javax.net.ssl.SSLSession
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
SSLSession sslSession();
|
||||
|
||||
/**
|
||||
|
||||
@@ -241,7 +241,7 @@ public interface NetSocket extends ReadStream<Buffer>, WriteStream<Buffer> {
|
||||
* not SSL.
|
||||
* @see javax.net.ssl.SSLSession
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
SSLSession sslSession();
|
||||
|
||||
/**
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
package io.vertx.core.parsetools;
|
||||
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import io.vertx.codegen.annotations.GenIgnore;
|
||||
import io.vertx.codegen.annotations.VertxGen;
|
||||
import io.vertx.core.buffer.Buffer;
|
||||
import io.vertx.core.json.JsonArray;
|
||||
@@ -116,7 +117,7 @@ public interface JsonEvent {
|
||||
* @throws java.lang.ClassCastException if the value is not a String
|
||||
* @throws java.time.format.DateTimeParseException if the String value is not a legal ISO 8601 encoded value
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
Instant instantValue();
|
||||
|
||||
/**
|
||||
@@ -160,7 +161,7 @@ public interface JsonEvent {
|
||||
* @param type the type to decode the value to
|
||||
* @return the decoded value
|
||||
*/
|
||||
@SuppressWarnings("codegen-allow-any-java-type")
|
||||
@GenIgnore(GenIgnore.PERMITTED_TYPE)
|
||||
<T> T mapTo(TypeReference<T> type);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user