cometd-java/cometd-java-oort/src/main/java/org/cometd/oort/Oort.java
/**
     * @param session the server session to test
     * @return whether the given server session is one of those created by the Oort internal working
     * @see #isOortHandshake(Message)
     */
@param session the server session to test
@return whether the given server session is one of those created by the Oort internal working
@see #isOortHandshake(Message)
@param session the server session to test @return whether the given server session is one of those created by the Oort internal working @see #isOortHandshake ( Message )
public boolean isOort(ServerSession session) {
        if (session == null) {
            return false;
        }
        String id = session.getId();
        if (id.equals(_oortSession.getId())) {
            return true;
        }
        if (_membership.containsServerSession(session)) {
            return true;
        }
        return session.getAttribute(COMET_URL_ATTRIBUTE) != null;
    }
public boolean isOort ( ServerSession session ) { if ( session == null ) { return false ; } String id = session . getId ( ) ; if ( id . equals ( _oortSession . getId ( ) ) ) { return true ; } if ( _membership . containsServerSession ( session ) ) { return true ; } return session . getAttribute ( COMET_URL_ATTRIBUTE ) != null ; }
@param session the server session to test
 @return whether the given server session is one of those created by the Oort internal working
 @see #isOortHandshake(Message)
@param session the server session to test @return whether the given server session is one of those created by the Oort internal working @see #isOortHandshake ( Message )