Gets an {@link Stream} object for the given sessionId and streamId.

@param sessionId The session ID.
@param streamId The stream ID.
@return The {@link Stream} object.
770703
public Stream getStream(String sessionId, String streamId) throws OpenTokException {
        String stream = this.client.getStream(sessionId, streamId);
        try {
            return streamReader.readValue(stream);
        } catch (Exception e) {
            throw new RequestException("Exception mapping json: " + e.getMessage());
        }
    }
336774
public PMSession registerSession(String sessionId) {
        synchronized (sessions) {
            if (sessionId != null) {
                if (!sessions.containsKey(sessionId)) {
                    sessions.put(sessionId, new PMSession(sessionId));
                }
                return getSession(sessionId);
            } else {
                return registerSession(newSessionId());
            }
        }
    }
108885
public HttpSessionImpl getSession(final String sessionId) {
        final SessionManager sessionManager = deployment.getSessionManager();
        Session session = sessionManager.getSession(sessionId);
        if (session != null) {
            return SecurityActions.forSession(session, this, false);
        }
        return null;
    }
111910
public Session getSession(final String sessionId) {
    final Session elem = this.cache.getIfPresent(sessionId);
    return elem;
  }
313568
@Override
  public ImageInputStream getImageInputStream(long txid) throws IOException {
    URLImageInputStream stream = loggers.getImageInputStream(txid,
        httpConnectReadTimeoutMs);
    if (stream == null) {
      throw new IOException("Cannot obtain input stream for image: " + txid);
    }
    return new ImageInputStream(txid, stream, stream.getImageDigest(),
        stream.toString(), stream.getSize());
  }
130354
public SIBUuid12 getStreamID()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.entry(tc, "getStreamID");  
    SIBUuid12 returnValue = aiStream.getStreamId();   
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.exit(tc, "getStreamID", returnValue);
    return returnValue;
  }
1056916
public CmsUgcSession getSession(HttpServletRequest request, CmsUUID sessionId) {

        return (CmsUgcSession)request.getSession(true).getAttribute("" + sessionId);
    }
288960
public GetStreamResponse getStream(String domain, String app, String stream) {
        GetStreamRequest request = new GetStreamRequest();
        request.withPlayDomain(domain).withApp(app).withStream(stream);
        return getStream(request);
    }
1235468
public GetSessionSourceInfoResponse getSessionSourceInfo(String sessionId) {
        checkStringNotEmpty(sessionId, "The parameter sessionId should NOT be null or empty string.");
        GetSessionSourceInfoRequest request = new GetSessionSourceInfoRequest();
        InternalRequest internalRequest = createRequest(HttpMethodName.GET, request, LIVE_SESSION, sessionId);
        internalRequest.addParameter(SOURCE_INFO, null);
        return invokeHttpClient(internalRequest, GetSessionSourceInfoResponse.class);
    }
708177
public final SIBUuid12 getGuaranteedStreamUUID() {
        byte[] b = (byte[]) getHdr2().getField(JsHdr2Access.GUARANTEED_SET_STREAMUUID);
        if (b != null)
            return new SIBUuid12(b);
        return null;
    }
1218183
public StreamList listStreams(String sessionId) throws OpenTokException {
        String streams = this.client.listStreams(sessionId);
        try {
            return streamListReader.readValue(streams);
        } catch (JsonProcessingException e) {
            throw new RequestException("Exception mapping json: " + e.getMessage());
        } catch (IOException e) {
            throw new RequestException("Exception mapping json: " + e.getMessage());
        }
    }
596157
private InputStream getStream(String pid, String dsId, String dsVersionId) {
        File file = getFile(pid, dsId, dsVersionId);
        try {
            return new FileInputStream(file);
        } catch (FileNotFoundException e) {
            return null;
        }
    }
960932
public GetAppStreamResponse queryAppStream(String app, String stream) {
        GetAppStreamRequest request = new GetAppStreamRequest();
        request.setApp(app);
        request.setStream(stream);
        return queryAppStream(request);
    }
1324134
public InputStream getInputStream(BeanId beanId)
                    throws CSIException
    {
        final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
        if (isTraceOn && tc.isEntryEnabled())
            Tr.entry(tc, "getInputStream", beanId);

        final String fileName = getPortableFilename(beanId);
        FileInputStream result = null;

        try
        {
            result = (FileInputStream) AccessController.doPrivileged(new PrivilegedExceptionAction<FileInputStream>()
            {
                public FileInputStream run() throws IOException
                {
                    return new FileInputStream(new File(passivationDir, fileName));
                }
            });
        } catch (PrivilegedActionException ex)
        {
            //d248470 begin
            Exception ex2 = ex.getException();
            if (ex2 instanceof FileNotFoundException)
            {
                FFDCFilter.processException(ex2, CLASS_NAME + ".getInputStream", "524", this);
                if (isTraceOn && tc.isEventEnabled())
                    Tr.event(tc, "No file found while trying to activate passivated stateful session bean", fileName);
                throw new StreamUnavailableException("");
            }

            if (ex2 instanceof IOException)
            {
                FFDCFilter.processException(ex2, CLASS_NAME + ".getInputStream", "531", this);
                Tr.warning(tc, "IOEXCEPTION_READING_FILE_FOR_STATEFUL_SESSION_BEAN_CNTR0024W",
                           new Object[] { fileName, this, ex2 });
                throw new CSIException("IOException reading input stream for stateful session bean", (IOException) ex2);
            }

            throw new CSIException("Unexpected exception reading input stream for stateful session bean", ex2);
        }

        if (isTraceOn && tc.isEntryEnabled())
            Tr.exit(tc, "getInputStream");
        return result;
    }
796870
public Buffer getBroadcastQueue(String sessionId) {

        CmsSessionInfo sessionInfo = getSessionInfo(getSessionUUID(sessionId));
        if (sessionInfo == null) {
            // return empty message buffer if the session is gone or not available
            return BufferUtils.synchronizedBuffer(new CircularFifoBuffer(CmsSessionInfo.QUEUE_SIZE));
        }
        return sessionInfo.getBroadcastQueue();
    }
1353088
public GetSessionResponse getSession(String sessionId) {
        GetSessionRequest request = new GetSessionRequest();
        request.setSessionId(sessionId);
        return getSession(request);
    }
541720
public StartPullSessionResponse startPullSession(String sessionId) {
        StartPullSessionRequest request = new StartPullSessionRequest().withSessionId(sessionId);
        return startPullSession(request);
    }