19 | * @see io.netty.example.udt 20 | * 21 | * @deprecated The UDT transport is no longer maintained and will be removed. 22 | */ 23 | package io.netty.channel.udt; 24 | 25 | -------------------------------------------------------------------------------- /transport/src/main/java/io/netty/channel/nio/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 The Netty Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | /** 18 | * NIO-based channel 19 | * API implementation - recommended for a large number of connections (>= 1000). 20 | */ 21 | package io.netty.channel.nio; 22 | -------------------------------------------------------------------------------- /codec-http/src/main/java/io/netty/handler/codec/rtsp/RtspResponseDecoder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 The Netty Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | package io.netty.handler.codec.rtsp; 17 | 18 | /** 19 | * @deprecated Use {@link RtspDecoder} directly instead 20 | */ 21 | @Deprecated 22 | public class RtspResponseDecoder extends RtspDecoder { 23 | } 24 | -------------------------------------------------------------------------------- /codec-http/src/main/java/io/netty/handler/codec/rtsp/RtspResponseEncoder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 The Netty Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | package io.netty.handler.codec.rtsp; 17 | 18 | /** 19 | * @deprecated Use {@link RtspEncoder} directly instead 20 | */ 21 | @Deprecated 22 | public class RtspResponseEncoder extends RtspEncoder { 23 | } 24 | -------------------------------------------------------------------------------- /transport-sctp/src/main/java/com/sun/nio/sctp/AssociationChangeNotification.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 The Netty Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | package com.sun.nio.sctp; 17 | 18 | public abstract class AssociationChangeNotification implements Notification { 19 | static { 20 | UnsupportedOperatingSystemException.raise(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /transport-sctp/src/main/java/com/sun/nio/sctp/PeerAddressChangeNotification.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 The Netty Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | package com.sun.nio.sctp; 17 | 18 | public abstract class PeerAddressChangeNotification implements Notification { 19 | static { 20 | UnsupportedOperatingSystemException.raise(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /transport-udt/src/main/java/io/netty/channel/udt/nio/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 The Netty Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | /** 17 | * UDT Transport for NIO Channels. 18 | *
19 | * @see io.netty.example.udt
20 | *
21 | * @deprecated The UDT transport is no longer maintained.
22 | */
23 | package io.netty.channel.udt.nio;
24 |
25 |
--------------------------------------------------------------------------------
/codec-xml/src/main/java/io/netty/handler/codec/xml/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2014 The Netty Project
3 | *
4 | * The Netty Project licenses this file to you under the Apache License,
5 | * version 2.0 (the "License"); you may not use this file except in compliance
6 | * with the License. You may obtain a copy of the License at:
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 | * License for the specific language governing permissions and limitations
14 | * under the License.
15 | */
16 |
17 | /**
18 | * XML codec provides asynchronous and non-blocking XML parser based on the
19 | * Aalto XML parser.
20 | */
21 | package io.netty.handler.codec.xml;
22 |
--------------------------------------------------------------------------------
/common/src/main/java/io/netty/util/ResourceLeakHint.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2014 The Netty Project
3 | *
4 | * The Netty Project licenses this file to you under the Apache License,
5 | * version 2.0 (the "License"); you may not use this file except in compliance
6 | * with the License. You may obtain a copy of the License at:
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 | * License for the specific language governing permissions and limitations
14 | * under the License.
15 | */
16 |
17 | package io.netty.util;
18 |
19 | /**
20 | * 一个提示对象,提供人类可读的消息,更容易资源泄漏跟踪.
21 | */
22 | public interface ResourceLeakHint {
23 | /**
24 | * 返回一个人类可读的消息,可能使资源泄漏跟踪更容易。
25 | */
26 | String toHintString();
27 | }
28 |
--------------------------------------------------------------------------------
/transport-native-epoll/src/main/java/io/netty/channel/epoll/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2014 The Netty Project
3 | *
4 | * The Netty Project licenses this file to you under the Apache License,
5 | * version 2.0 (the "License"); you may not use this file except in compliance
6 | * with the License. You may obtain a copy of the License at:
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 | * License for the specific language governing permissions and limitations
14 | * under the License.
15 | */
16 |
17 | /**
18 | * Optimized transport for linux which uses EPOLL Edge-Triggered Mode
19 | * for maximal performance.
20 | */
21 | package io.netty.channel.epoll;
22 |
--------------------------------------------------------------------------------
/transport-sctp/src/main/java/com/sun/nio/sctp/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2011 The Netty Project
3 | *
4 | * The Netty Project licenses this file to you under the Apache License,
5 | * version 2.0 (the "License"); you may not use this file except in compliance
6 | * with the License. You may obtain a copy of the License at:
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 | * License for the specific language governing permissions and limitations
14 | * under the License.
15 | */
16 |
17 | /**
18 | * This package is only included to let SCTP also compile on non-unix operation systems.
19 | *
20 | * This will not get included in the generated jar!
21 | */
22 | package com.sun.nio.sctp;
23 |
--------------------------------------------------------------------------------
/transport/src/main/java/io/netty/channel/embedded/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012 The Netty Project
3 | *
4 | * The Netty Project licenses this file to you under the Apache License,
5 | * version 2.0 (the "License"); you may not use this file except in compliance
6 | * with the License. You may obtain a copy of the License at:
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 | * License for the specific language governing permissions and limitations
14 | * under the License.
15 | */
16 |
17 | /**
18 | * A virtual {@link io.netty.channel.Channel} that helps wrapping a series of handlers to
19 | * unit test the handlers or use them in non-I/O context.
20 | */
21 | package io.netty.channel.embedded;
22 |
23 |
--------------------------------------------------------------------------------
/codec-xml/src/main/java/io/netty/handler/codec/xml/XmlComment.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2014 The Netty Project
3 | *
4 | * The Netty Project licenses this file to you under the Apache License,
5 | * version 2.0 (the "License"); you may not use this file except in compliance
6 | * with the License. You may obtain a copy of the License at:
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 | * License for the specific language governing permissions and limitations
14 | * under the License.
15 | */
16 | package io.netty.handler.codec.xml;
17 |
18 | /**
19 | * XML Comment
20 | */
21 | public class XmlComment extends XmlContent {
22 |
23 | public XmlComment(String data) {
24 | super(data);
25 | }
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/common/src/main/java/io/netty/util/IntSupplier.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2016 The Netty Project
3 | *
4 | * The Netty Project licenses this file to you under the Apache License,
5 | * version 2.0 (the "License"); you may not use this file except in compliance
6 | * with the License. You may obtain a copy of the License at:
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 | * License for the specific language governing permissions and limitations
14 | * under the License.
15 | */
16 | package io.netty.util;
17 |
18 | /**
19 | * 代表一个返回 int 结果的提供商
20 | */
21 | public interface IntSupplier {
22 |
23 | /**
24 | * 获取结果
25 | *
26 | * @return a result
27 | */
28 | int get() throws Exception;
29 | }
30 |
--------------------------------------------------------------------------------
/codec-memcache/src/main/java/io/netty/handler/codec/memcache/binary/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2013 The Netty Project
3 | *
4 | * The Netty Project licenses this file to you under the Apache License,
5 | * version 2.0 (the "License"); you may not use this file except in compliance
6 | * with the License. You may obtain a copy of the License at:
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 | * License for the specific language governing permissions and limitations
14 | * under the License.
15 | */
16 |
17 | /**
18 | * Implementations and Interfaces for the Memcache Binary protocol.
19 | */
20 | @UnstableApi
21 | package io.netty.handler.codec.memcache.binary;
22 |
23 | import io.netty.util.internal.UnstableApi;
24 |
--------------------------------------------------------------------------------
/codec-redis/src/main/java/io/netty/handler/codec/redis/RedisMessage.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2016 The Netty Project
3 | *
4 | * The Netty Project licenses this file to you under the Apache License, version 2.0 (the
5 | * "License"); you may not use this file except in compliance with the License. You may obtain a
6 | * copy of the License at:
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software distributed under the License
11 | * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12 | * or implied. See the License for the specific language governing permissions and limitations under
13 | * the License.
14 | */
15 |
16 | package io.netty.handler.codec.redis;
17 |
18 | import io.netty.util.internal.UnstableApi;
19 |
20 | /**
21 | * RedisMessage is base interface for codec-redis.
22 | */
23 | @UnstableApi
24 | public interface RedisMessage {
25 | }
26 |
--------------------------------------------------------------------------------
/codec-xml/src/main/java/io/netty/handler/codec/xml/XmlSpace.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2014 The Netty Project
3 | *
4 | * The Netty Project licenses this file to you under the Apache License,
5 | * version 2.0 (the "License"); you may not use this file except in compliance
6 | * with the License. You may obtain a copy of the License at:
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 | * License for the specific language governing permissions and limitations
14 | * under the License.
15 | */
16 | package io.netty.handler.codec.xml;
17 |
18 | /**
19 | * White space characters
20 | */
21 | public class XmlSpace extends XmlContent {
22 |
23 | public XmlSpace(String data) {
24 | super(data);
25 | }
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/codec/src/main/java/io/netty/handler/codec/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012 The Netty Project
3 | *
4 | * The Netty Project licenses this file to you under the Apache License,
5 | * version 2.0 (the "License"); you may not use this file except in compliance
6 | * with the License. You may obtain a copy of the License at:
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 | * License for the specific language governing permissions and limitations
14 | * under the License.
15 | */
16 |
17 | /**
18 | * Extensible decoder and its common implementations which deal with the
19 | * packet fragmentation and reassembly issue found in a stream-based transport
20 | * such as TCP/IP.
21 | */
22 | package io.netty.handler.codec;
23 |
--------------------------------------------------------------------------------
/transport-sctp/src/main/java/io/netty/channel/sctp/nio/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012 The Netty Project
3 | *
4 | * The Netty Project licenses this file to you under the Apache License,
5 | * version 2.0 (the "License"); you may not use this file except in compliance
6 | * with the License. You may obtain a copy of the License at:
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 | * License for the specific language governing permissions and limitations
14 | * under the License.
15 | */
16 |
17 | /**
18 | * NIO-based SCTP Channel
19 | * API implementation - recommended for a large number of connections (>= 1000).
20 | */
21 | package io.netty.channel.sctp.nio;
22 |
--------------------------------------------------------------------------------
/common/src/main/java/io/netty/util/internal/NoOpTypeParameterMatcher.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2013 The Netty Project
3 | *
4 | * The Netty Project licenses this file to you under the Apache License,
5 | * version 2.0 (the "License"); you may not use this file except in compliance
6 | * with the License. You may obtain a copy of the License at:
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 | * License for the specific language governing permissions and limitations
14 | * under the License.
15 | */
16 |
17 | package io.netty.util.internal;
18 |
19 | public final class NoOpTypeParameterMatcher extends TypeParameterMatcher {
20 | @Override
21 | public boolean match(Object msg) {
22 | return true;
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/handler/src/test/java/io/netty/handler/ssl/JdkSslRenegotiateTest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2015 The Netty Project
3 | *
4 | * The Netty Project licenses this file to you under the Apache License,
5 | * version 2.0 (the "License"); you may not use this file except in compliance
6 | * with the License. You may obtain a copy of the License at:
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 | * License for the specific language governing permissions and limitations
14 | * under the License.
15 | */
16 | package io.netty.handler.ssl;
17 |
18 | public class JdkSslRenegotiateTest extends RenegotiateTest {
19 |
20 | @Override
21 | protected SslProvider serverSslProvider() {
22 | return SslProvider.JDK;
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/transport/src/main/java/io/netty/channel/socket/nio/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012 The Netty Project
3 | *
4 | * The Netty Project licenses this file to you under the Apache License,
5 | * version 2.0 (the "License"); you may not use this file except in compliance
6 | * with the License. You may obtain a copy of the License at:
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 | * License for the specific language governing permissions and limitations
14 | * under the License.
15 | */
16 |
17 | /**
18 | * NIO-based socket channel
19 | * API implementation - recommended for a large number of connections (>= 1000).
20 | */
21 | package io.netty.channel.socket.nio;
22 |
--------------------------------------------------------------------------------
/codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2014 The Netty Project
3 | *
4 | * The Netty Project licenses this file to you under the Apache License,
5 | * version 2.0 (the "License"); you may not use this file except in compliance
6 | * with the License. You may obtain a copy of the License at:
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 | * License for the specific language governing permissions and limitations
14 | * under the License.
15 | */
16 |
17 | /**
18 | * Decodes an HAProxy proxy protocol header
19 | *
20 | * @see Proxy Protocol Specification
21 | */
22 | package io.netty.handler.codec.haproxy;
23 |
--------------------------------------------------------------------------------
/transport/src/main/java/io/netty/channel/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012 The Netty Project
3 | *
4 | * The Netty Project licenses this file to you under the Apache License,
5 | * version 2.0 (the "License"); you may not use this file except in compliance
6 | * with the License. You may obtain a copy of the License at:
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 | * License for the specific language governing permissions and limitations
14 | * under the License.
15 | */
16 |
17 | /**
18 | * The core channel API which is asynchronous and event-driven abstraction of
19 | * various transports such as a
20 | * NIO Channel.
21 | */
22 | package io.netty.channel;
23 |
--------------------------------------------------------------------------------
/handler/src/main/java/io/netty/handler/ipfilter/IpFilterRuleType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2014 The Netty Project
3 | *
4 | * The Netty Project licenses this file to you under the Apache License,
5 | * version 2.0 (the "License"); you may not use this file except in compliance
6 | * with the License. You may obtain a copy of the License at:
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 | * License for the specific language governing permissions and limitations
14 | * under the License.
15 | */
16 | package io.netty.handler.ipfilter;
17 |
18 | /**
19 | * Used in {@link IpFilterRule} to decide if a matching IP Address should be allowed or denied to connect.
20 | */
21 | public enum IpFilterRuleType {
22 | ACCEPT,
23 | REJECT
24 | }
25 |
--------------------------------------------------------------------------------
/codec/src/main/java/io/netty/handler/codec/serialization/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012 The Netty Project
3 | *
4 | * The Netty Project licenses this file to you under the Apache License,
5 | * version 2.0 (the "License"); you may not use this file except in compliance
6 | * with the License. You may obtain a copy of the License at:
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 | * License for the specific language governing permissions and limitations
14 | * under the License.
15 | */
16 |
17 | /**
18 | * Encoder, decoder and their compatibility stream implementations which
19 | * transform a {@link java.io.Serializable} object into a byte buffer and
20 | * vice versa.
21 | */
22 | package io.netty.handler.codec.serialization;
23 |
--------------------------------------------------------------------------------
/transport-rxtx/src/main/java/io/netty/channel/rxtx/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2013 The Netty Project
3 | *
4 | * The Netty Project licenses this file to you under the Apache License,
5 | * version 2.0 (the "License"); you may not use this file except in compliance
6 | * with the License. You may obtain a copy of the License at:
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 | * License for the specific language governing permissions and limitations
14 | * under the License.
15 | */
16 |
17 | /**
18 | * A serial and parallel port communication transport based on RXTX.
19 | *
20 | * @deprecated this transport will be removed in the next major version.
21 | */
22 | package io.netty.channel.rxtx;
23 |
--------------------------------------------------------------------------------
/buffer/src/main/java/io/netty/buffer/ByteBufAllocatorMetricProvider.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017 The Netty Project
3 | *
4 | * The Netty Project licenses this file to you under the Apache License,
5 | * version 2.0 (the "License"); you may not use this file except in compliance
6 | * with the License. You may obtain a copy of the License at:
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 | * License for the specific language governing permissions and limitations
14 | * under the License.
15 | */
16 | package io.netty.buffer;
17 |
18 | public interface ByteBufAllocatorMetricProvider {
19 |
20 | /**
21 | * Returns a {@link ByteBufAllocatorMetric} for a {@link ByteBufAllocator}.
22 | */
23 | ByteBufAllocatorMetric metric();
24 | }
25 |
--------------------------------------------------------------------------------
/codec-http/src/main/java/io/netty/handler/codec/http/websocketx/extensions/WebSocketClientExtension.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2014 The Netty Project
3 | *
4 | * The Netty Project licenses this file to you under the Apache License,
5 | * version 2.0 (the "License"); you may not use this file except in compliance
6 | * with the License. You may obtain a copy of the License at:
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 | * License for the specific language governing permissions and limitations
14 | * under the License.
15 | */
16 | package io.netty.handler.codec.http.websocketx.extensions;
17 |
18 | /**
19 | * Created once the handshake phase is done.
20 | */
21 | public interface WebSocketClientExtension extends WebSocketExtension {
22 |
23 | }
24 |
--------------------------------------------------------------------------------
/codec-http2/src/main/java/io/netty/handler/codec/http2/Http2SettingsFrame.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2016 The Netty Project
3 | *
4 | * The Netty Project licenses this file to you under the Apache License,
5 | * version 2.0 (the "License"); you may not use this file except in compliance
6 | * with the License. You may obtain a copy of the License at:
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 | * License for the specific language governing permissions and limitations
14 | * under the License.
15 | */
16 |
17 | package io.netty.handler.codec.http2;
18 |
19 | /**
20 | * HTTP/2 SETTINGS frame.
21 | */
22 | public interface Http2SettingsFrame extends Http2Frame {
23 |
24 | Http2Settings settings();
25 |
26 | @Override
27 | String name();
28 | }
29 |
--------------------------------------------------------------------------------
/codec-xml/src/main/java/io/netty/handler/codec/xml/XmlCdata.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2014 The Netty Project
3 | *
4 | * The Netty Project licenses this file to you under the Apache License,
5 | * version 2.0 (the "License"); you may not use this file except in compliance
6 | * with the License. You may obtain a copy of the License at:
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 | * License for the specific language governing permissions and limitations
14 | * under the License.
15 | */
16 | package io.netty.handler.codec.xml;
17 |
18 | /**
19 | * XML CDATA ...
20 | */
21 | public class XmlCdata extends XmlContent {
22 |
23 | public XmlCdata(String data) {
24 | super(data);
25 | }
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/codec/src/main/java/io/netty/handler/codec/serialization/ClassResolver.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012 The Netty Project
3 | *
4 | * The Netty Project licenses this file to you under the Apache License,
5 | * version 2.0 (the "License"); you may not use this file except in compliance
6 | * with the License. You may obtain a copy of the License at:
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 | * License for the specific language governing permissions and limitations
14 | * under the License.
15 | */
16 | package io.netty.handler.codec.serialization;
17 |
18 | /**
19 | * please use {@link ClassResolvers} as instance factory
20 | */
21 | public interface ClassResolver {
22 |
23 | Class> resolve(String className) throws ClassNotFoundException;
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/transport-native-epoll/src/test/java/io/netty/channel/epoll/EpollTest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2014 The Netty Project
3 | *
4 | * The Netty Project licenses this file to you under the Apache License,
5 | * version 2.0 (the "License"); you may not use this file except in compliance
6 | * with the License. You may obtain a copy of the License at:
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 | * License for the specific language governing permissions and limitations
14 | * under the License.
15 | */
16 | package io.netty.channel.epoll;
17 |
18 | import org.junit.Assert;
19 | import org.junit.Test;
20 |
21 | public class EpollTest {
22 |
23 | @Test
24 | public void testIsAvailable() {
25 | Assert.assertTrue(Epoll.isAvailable());
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/common/src/main/java/io/netty/util/concurrent/ScheduledFuture.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2013 The Netty Project
3 | *
4 | * The Netty Project licenses this file to you under the Apache License,
5 | * version 2.0 (the "License"); you may not use this file except in compliance
6 | * with the License. You may obtain a copy of the License at:
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 | * License for the specific language governing permissions and limitations
14 | * under the License.
15 | */
16 | package io.netty.util.concurrent;
17 |
18 | /**
19 | * The result of an scheduled asynchronous operation.
20 | */
21 | @SuppressWarnings("ClassNameSameAsAncestorName")
22 | public interface ScheduledFuture