Package de.novanic.eventservice.service.exception

Examples of de.novanic.eventservice.service.exception.NoSessionAvailableException


     * @return the previous generated connection / client id for the specific client
     */
    public String getConnectionId(HttpServletRequest aRequest) {
        final HttpSession theSession = aRequest.getSession(false);
        if(theSession == null) {
            throw new NoSessionAvailableException("There is no session available! Maybe no session was generated explicitly by the connection id generator.");
        }
        return theSession.getId();
    }
View Full Code Here


     * Returns the client id.
     * @return client id
     */
    private String getClientId() {
        if(myClientId == null) {
            throw new NoSessionAvailableException();
        }
        return myClientId;
    }
View Full Code Here

TOP

Related Classes of de.novanic.eventservice.service.exception.NoSessionAvailableException

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.