ASF Bugzilla – Attachment 34494 Details for
Bug 60437
SSL Handshake implementation in AsycnChannelWrapperSecure does not handle SSLEngineResult.Status.BUFFER_OVERFLOW state
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
sample program
file_60437.txt (text/plain), 1.43 KB, created by
Dharmesh Patel
on 2016-12-01 12:08:46 UTC
(
hide
)
Description:
sample program
Filename:
MIME Type:
Creator:
Dharmesh Patel
Created:
2016-12-01 12:08:46 UTC
Size:
1.43 KB
patch
obsolete
>package com.wss; > >import java.io.IOException; >import java.net.URI; >import java.net.URISyntaxException; >import java.security.NoSuchAlgorithmException; > >import javax.websocket.ClientEndpointConfig; >import javax.websocket.ClientEndpointConfig.Configurator; >import javax.websocket.ContainerProvider; >import javax.websocket.DeploymentException; >import javax.websocket.Endpoint; >import javax.websocket.EndpointConfig; >import javax.websocket.Session; >import javax.websocket.WebSocketContainer; > >public class WSSCLientUsingTomcatWSContainer extends Endpoint { > > public static void main(String[] args) throws NoSuchAlgorithmException { > // TODO Auto-generated method stub > WebSocketContainer container = ContainerProvider.getWebSocketContainer(); > > ClientEndpointConfig cec=ClientEndpointConfig.Builder.create().configurator(new Configurator()).build(); > cec.getUserProperties().put("org.apache.tomcat.websocket.SSL_CONTEXT",javax.net.ssl.SSLContext.getDefault()); > > try { > container.connectToServer(new WSSCLientUsingTomcatWSContainer(), cec, new URI("wss://localhost:8445/examples/websocket/chat")); > > } catch (DeploymentException | IOException | URISyntaxException e) { > // TODO Auto-generated catch block > e.printStackTrace(); > } > } > > @Override > public void onOpen(Session session, EndpointConfig config) { > // TODO Auto-generated method stub > > > > > } > >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 60437
: 34494