Java Code Examples for org.eclipse.jetty.websocket.api.WebSocketPolicy#newServerPolicy()

The following examples show how to use org.eclipse.jetty.websocket.api.WebSocketPolicy#newServerPolicy() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: WebSocketPolicyProvider.java    From onedev with MIT License 4 votes vote down vote up
@Override
public WebSocketPolicy get() {
	WebSocketPolicy policy = WebSocketPolicy.newServerPolicy();
	policy.setIdleTimeout(serverConfig.getSessionTimeout()*1000);
	return policy;
}
 
Example 2
Source File: JettyRequestUpgradeStrategy.java    From spring-analysis-note with MIT License 2 votes vote down vote up
/**
 * Default constructor that creates {@link WebSocketServerFactory} through
 * its default constructor thus using a default {@link WebSocketPolicy}.
 */
public JettyRequestUpgradeStrategy() {
	this.policy = WebSocketPolicy.newServerPolicy();
}
 
Example 3
Source File: JettyRequestUpgradeStrategy.java    From java-technology-stack with MIT License 2 votes vote down vote up
/**
 * Default constructor that creates {@link WebSocketServerFactory} through
 * its default constructor thus using a default {@link WebSocketPolicy}.
 */
public JettyRequestUpgradeStrategy() {
	this.policy = WebSocketPolicy.newServerPolicy();
}