[ 
https://issues.apache.org/jira/browse/TINKERPOP-915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16069979#comment-16069979
 ] 

ASF GitHub Bot commented on TINKERPOP-915:
------------------------------------------

Github user spmallette commented on a diff in the pull request:

    https://github.com/apache/tinkerpop/pull/618#discussion_r125022658
  
    --- Diff: 
gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/handler/WebSocketHandlerUtil.java
 ---
    @@ -0,0 +1,38 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one
    + * or more contributor license agreements.  See the NOTICE file
    + * distributed with this work for additional information
    + * regarding copyright ownership.  The ASF licenses this file
    + * to you under the Apache License, Version 2.0 (the
    + * "License"); you may not use this file except in compliance
    + * with the License.  You may obtain a copy of the License at
    + *
    + * http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing,
    + * software distributed under the License is distributed on an
    + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    + * KIND, either express or implied.  See the License for the
    + * specific language governing permissions and limitations
    + * under the License.
    + */
    +package org.apache.tinkerpop.gremlin.server.handler;
    +
    +import io.netty.handler.codec.http.HttpMessage;
    +
    +import static io.netty.handler.codec.http.HttpHeaders.Names.UPGRADE;
    +import static io.netty.handler.codec.http.HttpHeaders.Names.CONNECTION;
    +
    +/**
    + * A class to handle common WebSocket operations
    + * @author Keith Lohnes lohn...@gmail.com
    + */
    +public class WebSocketHandlerUtil {
    --- End diff --
    
    As this is a utility class, please make it final and give it a private 
constructor. Maybe it doesn't even need to be public?


> Gremlin Server supports REST and Websockets simultanteously
> -----------------------------------------------------------
>
>                 Key: TINKERPOP-915
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-915
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: server
>    Affects Versions: 3.0.2-incubating
>            Reporter: stephen mallette
>
> Develop a {{Channelizer}} that allows REST and Websockets to be configured at 
> the same time.  I've personally tried to do this on a couple of attempts 
> while following a Netty sample, but I've never been able to get it to work.  
> Perhaps folks like [~pluradj] or [~dmill] would like to give it a go some 
> day? :)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to