-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #3458 - make jetty-websocket-client hide websocket-core
Signed-off-by: lachan-roberts <lachlan@webtide.com>
- Loading branch information
1 parent
89bee3f
commit 7aa6c62
Showing
3 changed files
with
63 additions
and
10 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
...bsocket-client/src/main/java/org/eclipse/jetty/websocket/client/JettyUpgradeListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// | ||
// ======================================================================== | ||
// Copyright (c) 1995-2019 Mort Bay Consulting Pty. Ltd. | ||
// ------------------------------------------------------------------------ | ||
// All rights reserved. This program and the accompanying materials | ||
// are made available under the terms of the Eclipse Public License v1.0 | ||
// and Apache License v2.0 which accompanies this distribution. | ||
// | ||
// The Eclipse Public License is available at | ||
// http://www.eclipse.org/legal/epl-v10.html | ||
// | ||
// The Apache License v2.0 is available at | ||
// http://www.opensource.org/licenses/apache2.0.php | ||
// | ||
// You may elect to redistribute this code under either of these licenses. | ||
// ======================================================================== | ||
// | ||
|
||
package org.eclipse.jetty.websocket.client; | ||
|
||
import org.eclipse.jetty.client.HttpRequest; | ||
import org.eclipse.jetty.client.HttpResponse; | ||
|
||
public interface JettyUpgradeListener | ||
{ | ||
/** | ||
* Event that triggers before the Handshake request is sent. | ||
* | ||
* @param request the request | ||
*/ | ||
default void onHandshakeRequest(HttpRequest request) | ||
{} | ||
|
||
/** | ||
* Event that triggers after the Handshake response has been received. | ||
* | ||
* @param request the request that was used | ||
* @param response the response that was received | ||
*/ | ||
default void onHandshakeResponse(HttpRequest request, HttpResponse response) | ||
{} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters