Package org.glassfish.tyrus.core

Examples of org.glassfish.tyrus.core.TyrusWebSocketEngine$NoConnectionUpgradeInfo


    public UrsusTyrusServerContainer(Set<Class<?>> classes, String contextPath, int incomingBufferSize) throws DeploymentException {
        super(classes);
        this.classes = classes;
        this.contextPath = contextPath;
        this.engine = new TyrusWebSocketEngine(this, incomingBufferSize, null);
        init();
    }
View Full Code Here


    public UrsusTyrusServerContainer(Set<Class<?>> classes, Set<ServerEndpointConfig> serverEndpointConfigs, String contextPath,
                                     int incomingBufferSize) throws DeploymentException {
        super(classes);
        this.classes = classes;
        this.contextPath = contextPath;
        this.engine = new TyrusWebSocketEngine(this, incomingBufferSize, null);
        this.serverEndpointConfigs = serverEndpointConfigs;
        init();
    }
View Full Code Here

    HttpServletRequest servletRequest = getHttpServletRequest(request);
    HttpServletResponse servletResponse = getHttpServletResponse(response);

    TyrusServerContainer serverContainer = (TyrusServerContainer) getContainer(servletRequest);
    TyrusWebSocketEngine engine = (TyrusWebSocketEngine) serverContainer.getWebSocketEngine();
    Object tyrusEndpoint = null;

    try {
      // Shouldn't matter for processing but must be unique
      String path = "/" + random.nextLong();
      tyrusEndpoint = createTyrusEndpoint(endpoint, path, selectedProtocol, extensions, serverContainer, engine);
      getEndpointHelper().register(engine, tyrusEndpoint);

      HttpHeaders headers = request.getHeaders();
      RequestContext requestContext = createRequestContext(servletRequest, path, headers);
      TyrusUpgradeResponse upgradeResponse = new TyrusUpgradeResponse();
      UpgradeInfo upgradeInfo = engine.upgrade(requestContext, upgradeResponse);

      switch (upgradeInfo.getStatus()) {
        case SUCCESS:
          if (logger.isTraceEnabled()) {
            logger.trace("Successful upgrade: " + upgradeResponse.getHeaders());
View Full Code Here

    public UrsusTyrusServerContainer(Set<Class<?>> classes, String contextPath, int incomingBufferSize) throws DeploymentException {
        super(classes);
        this.classes = classes;
        this.contextPath = contextPath;
        this.engine = new TyrusWebSocketEngine(this, incomingBufferSize);
        init();
    }
View Full Code Here

    public UrsusTyrusServerContainer(Set<Class<?>> classes, String contextPath, int incomingBufferSize) throws DeploymentException {
        super(classes);
        this.classes = classes;
        this.contextPath = contextPath;
        this.engine = new TyrusWebSocketEngine(this, incomingBufferSize);
        init();
    }
View Full Code Here

    public UrsusTyrusServerContainer(Set<Class<?>> classes, Set<ServerEndpointConfig> serverEndpointConfigs, String contextPath,
                                     int incomingBufferSize) throws DeploymentException {
        super(classes);
        this.classes = classes;
        this.contextPath = contextPath;
        this.engine = new TyrusWebSocketEngine(this, incomingBufferSize);
        this.serverEndpointConfigs = serverEndpointConfigs;
        init();
    }
View Full Code Here

TOP

Related Classes of org.glassfish.tyrus.core.TyrusWebSocketEngine$NoConnectionUpgradeInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.