Skip to content

Commit

Permalink
Working mix [Netty/NOTICE.md]
Browse files Browse the repository at this point in the history
Signed-off-by: Maxim Nesen <[email protected]>
  • Loading branch information
senivam committed Jan 21, 2025
1 parent d9658aa commit 51974b2
Show file tree
Hide file tree
Showing 6 changed files with 237 additions and 91 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception
ctx.fireChannelRead(msg); //bypass the message to the next handler in line
} else {
ctx.pipeline().remove(JerseyExpectContinueHandler.class);
ctx.pipeline().fireChannelActive();
System.out.println("Chanel is active after 100-Continue received");
ctx.pipeline().flush();
}
} else {
if (!isExpected) {
Expand Down Expand Up @@ -118,6 +121,7 @@ private void processExpectationStatus(HttpResponseStatus status)
throw new ProcessingException(LocalizationMessages
.UNEXPECTED_VALUE_FOR_EXPECT_100_CONTINUE_STATUSES(status.code()), null);
}
isExpected = false;
}

boolean isExpected() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,8 @@ public void operationComplete(io.netty.util.concurrent.Future<? super Void> futu
}
}

System.out.println("Step after 100-Continue processing");

final CountDownLatch headersSet = new CountDownLatch(1);
final CountDownLatch contentLengthSet = new CountDownLatch(1);

Expand Down Expand Up @@ -491,11 +493,12 @@ public void run() {
});

headersSet.await();
if (!expect100ContinueHandler.isExpected()) {
// if (!expect100ContinueHandler.isExpected()) {
// Send the HTTP request. Expect:100-continue processing is not applicable
// in this case.
System.out.println("Another step after 100-Continue processing");
entityWriter.writeAndFlush(nettyRequest);
}
// }

if (HttpUtil.isTransferEncodingChunked(nettyRequest)) {
entityWriter.write(new HttpChunkedInput(entityWriter.getChunkedInput()));
Expand Down
53 changes: 53 additions & 0 deletions core-client/src/main/resources/META-INF/NOTICE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Notice for Jersey Core Client module
This content is produced and maintained by the Eclipse Jersey project.


* https://projects.eclipse.org/projects/ee4j.jersey

## Trademarks
Eclipse Jersey is a trademark of the Eclipse Foundation.

## Copyright

All content is the property of the respective authors or their employers. For
more information regarding authorship of content, please consult the listed
source code repository logs.

## Declared Project Licenses

This program and the accompanying materials are made available under the terms
of the Eclipse Public License v. 2.0 which is available at
http://www.eclipse.org/legal/epl-2.0. This Source Code may also be made
available under the following Secondary Licenses when the conditions for such
availability set forth in the Eclipse Public License v. 2.0 are satisfied: GNU
General Public License, version 2 with the GNU Classpath Exception which is
available at https://www.gnu.org/software/classpath/license.html.

SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0

## Source Code
The project maintains the following source code repositories:

* https://github.com/eclipse-ee4j/jersey

## Third-party Content

org.glassfish.hk2.external:jakarta.inject
* Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
* Eclipse Public License 2.0 + GPL v.2 with CPE

org.glassfish.hk2:osgi-resource-locator
* Copyright (c) 2009,2018 Oracle and/or its affiliates. All rights reserved.
* Eclipse Public License 2.0 + GPL v.2 with CPE

jakarta.annotation:jakarta.annotation-api
* Copyright (c) 2005,2022 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, 2021 Eclipse Foundation. All rights reserved.
* Eclipse Public License 2.0 + GPL v.2 with CPE

jakarta.ws.rs:jakarta.ws.rs-api
* Copyright (c) 2010,2021 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018 Markus KARG. All rights reserved.
* Copyright (c) 2006 Google Inc.
* Eclipse Public License 2.0 + GPL v.2 with CPE

70 changes: 70 additions & 0 deletions core-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,76 @@
<threadCount>1</threadCount>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>${resources.mvn.plugin.version}</version>
<extensions>true</extensions>
<inherited>false</inherited>
<!-- Add legal information, NOTICE.md and LINCENSE.md to jars -->
<executions>
<execution>
<!-- copy the files to classes folder for maven-jar/war-plugin to grab it -->
<id>copy-legaldocs</id>
<goals>
<goal>copy-resources</goal>
</goals>
<phase>process-sources</phase>
<configuration>
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
<resources>
<resource>
<directory>${legal.source.folder}</directory>
<targetPath>META-INF/</targetPath>
<includes>
<include>LICENSE.md</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
<execution>
<!-- copy the files to source folder for maven-source-plugin to grab it -->
<id>copy-legaldocs-to-sources</id>
<goals>
<goal>copy-resources</goal>
</goals>
<phase>process-sources</phase>
<configuration>
<outputDirectory>${project.build.directory}/generated-sources/rsrc-gen</outputDirectory>
<resources>
<resource>
<directory>${legal.source.folder}</directory>
<targetPath>META-INF/</targetPath>
<includes>
<include>LICENSE.md</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
<execution>
<!-- copy the files to legal folder for felix plugin to grab it -->
<id>copy-legaldocs-to-osgi-bundles</id>
<goals>
<goal>copy-resources</goal>
</goals>
<phase>process-sources</phase>
<configuration>
<outputDirectory>${project.build.directory}/legal</outputDirectory>
<resources>
<resource>
<directory>${legal.source.folder}</directory>
<targetPath>META-INF/</targetPath>
<includes>
<include>LICENSE.md</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,44 +1,60 @@
# Notice for Jersey Core Common module
This content is produced and maintained by the Eclipse Jersey project.


* https://projects.eclipse.org/projects/ee4j.jersey

## Trademarks
Eclipse Jersey is a trademark of the Eclipse Foundation.

## Copyright

All content is the property of the respective authors or their employers. For
more information regarding authorship of content, please consult the listed
source code repository logs.

## Declared Project Licenses

This program and the accompanying materials are made available under the terms
of the Eclipse Public License v. 2.0 which is available at
http://www.eclipse.org/legal/epl-2.0. This Source Code may also be made
available under the following Secondary Licenses when the conditions for such
availability set forth in the Eclipse Public License v. 2.0 are satisfied: GNU
General Public License, version 2 with the GNU Classpath Exception which is
available at https://www.gnu.org/software/classpath/license.html.

SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0

## Source Code
The project maintains the following source code repositories:

* https://github.com/eclipse-ee4j/jersey

## Third-party Content

Google Guava Version 18.0
* License: Apache License, 2.0
* Copyright: (C) 2009 The Guava Authors

JSR-166 Extension - JEP 266
* License: Creative Commons 1.0 (CC0)
* No copyright
* Written by Doug Lea with assistance from members of JCP JSR-166
* Expert Group and released to the public domain, as explained at
* http://creativecommons.org/publicdomain/zero/1.0/
# Notice for Jersey Core Common module
This content is produced and maintained by the Eclipse Jersey project.


* https://projects.eclipse.org/projects/ee4j.jersey

## Trademarks
Eclipse Jersey is a trademark of the Eclipse Foundation.

## Copyright

All content is the property of the respective authors or their employers. For
more information regarding authorship of content, please consult the listed
source code repository logs.

## Declared Project Licenses

This program and the accompanying materials are made available under the terms
of the Eclipse Public License v. 2.0 which is available at
http://www.eclipse.org/legal/epl-2.0. This Source Code may also be made
available under the following Secondary Licenses when the conditions for such
availability set forth in the Eclipse Public License v. 2.0 are satisfied: GNU
General Public License, version 2 with the GNU Classpath Exception which is
available at https://www.gnu.org/software/classpath/license.html.

SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0

## Source Code
The project maintains the following source code repositories:

* https://github.com/eclipse-ee4j/jersey

## Third-party Content

JSR-166 Extension - JEP 266
* License: Creative Commons 1.0 (CC0)
* No copyright
* Written by Doug Lea with assistance from members of JCP JSR-166
* Expert Group and released to the public domain, as explained at
* http://creativecommons.org/publicdomain/zero/1.0/

org.glassfish.hk2.external:jakarta.inject
* Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
* Eclipse Public License 2.0 + GPL v.2 with CPE

org.glassfish.hk2:osgi-resource-locator
* Copyright (c) 2009,2018 Oracle and/or its affiliates. All rights reserved.
* Eclipse Public License 2.0 + GPL v.2 with CPE

jakarta.annotation:jakarta.annotation-api
* Copyright (c) 2005,2022 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, 2021 Eclipse Foundation. All rights reserved.
* Eclipse Public License 2.0 + GPL v.2 with CPE

jakarta.ws.rs:jakarta.ws.rs-api
* Copyright (c) 2010,2021 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018 Markus KARG. All rights reserved.
* Copyright (c) 2006 Google Inc.
* Eclipse Public License 2.0 + GPL v.2 with CPE

Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
# Notice for Jersey Core Server module
This content is produced and maintained by the Eclipse Jersey project.

* https://projects.eclipse.org/projects/ee4j.jersey

## Trademarks
Eclipse Jersey is a trademark of the Eclipse Foundation.

## Copyright

All content is the property of the respective authors or their employers. For
more information regarding authorship of content, please consult the listed
source code repository logs.

## Declared Project Licenses

This program and the accompanying materials are made available under the terms
of the Eclipse Public License v. 2.0 which is available at
http://www.eclipse.org/legal/epl-2.0. This Source Code may also be made
available under the following Secondary Licenses when the conditions for such
availability set forth in the Eclipse Public License v. 2.0 are satisfied: GNU
General Public License, version 2 with the GNU Classpath Exception which is
available at https://www.gnu.org/software/classpath/license.html.

SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0

## Source Code
The project maintains the following source code repositories:

* https://github.com/eclipse-ee4j/jersey

## Third-party Content

org.glassfish.jersey.server.internal.monitoring.core
* License: Apache License, 2.0
* Copyright (c) 2015-2018 Oracle and/or its affiliates. All rights reserved.
* Copyright 2010-2013 Coda Hale and Yammer, Inc.

org.objectweb.asm Version 9.7.1
* License: Modified BSD (https://asm.ow2.io/license.html)
* Copyright: (c) 2000-2011 INRIA, France Telecom. All rights reserved.

W3.org documents
* License: W3C License
* Copyright: Copyright (c) 1994-2001 World Wide Web Consortium, (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved. http://www.w3.org/Consortium/Legal/
# Notice for Jersey Core Server module
This content is produced and maintained by the Eclipse Jersey project.

* https://projects.eclipse.org/projects/ee4j.jersey

## Trademarks
Eclipse Jersey is a trademark of the Eclipse Foundation.

## Copyright

All content is the property of the respective authors or their employers. For
more information regarding authorship of content, please consult the listed
source code repository logs.

## Declared Project Licenses

This program and the accompanying materials are made available under the terms
of the Eclipse Public License v. 2.0 which is available at
http://www.eclipse.org/legal/epl-2.0. This Source Code may also be made
available under the following Secondary Licenses when the conditions for such
availability set forth in the Eclipse Public License v. 2.0 are satisfied: GNU
General Public License, version 2 with the GNU Classpath Exception which is
available at https://www.gnu.org/software/classpath/license.html.

SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0

## Source Code
The project maintains the following source code repositories:

* https://github.com/eclipse-ee4j/jersey

## Third-party Content

org.glassfish.jersey.server.internal.monitoring.core
* License: Apache License, 2.0
* Copyright (c) 2015-2018 Oracle and/or its affiliates. All rights reserved.
* Copyright 2010-2013 Coda Hale and Yammer, Inc.

org.objectweb.asm Version 9.7.1
* License: Modified BSD (https://asm.ow2.io/license.html)
* Copyright: (c) 2000-2011 INRIA, France Telecom. All rights reserved.

W3.org documents
* License: W3C License
* Copyright: Copyright (c) 1994-2001 World Wide Web Consortium, (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved. http://www.w3.org/Consortium/Legal/

0 comments on commit 51974b2

Please sign in to comment.