Package de.fhkn.in.uce.mediator.peerregistry

Examples of de.fhkn.in.uce.mediator.peerregistry.UserData.addEndpoint()


    @Override
    public void handleMessage(final Message registerMessage, final Socket controlConnection) throws Exception {
        this.checkForRequiredAttributes(registerMessage);
        final UserData newUser = this.createNewUserWithRequiredAttributes(registerMessage, controlConnection);
        newUser.addEndpoint(this.getPublicEndpointFromSocket(controlConnection));
        if (registerMessage.hasAttribute(XorMappedAddress.class)) {
            newUser.addEndpoint(this.createEndpointFromAttributes(registerMessage));
        }
        this.userList.addOrUpdateUser(newUser);
        logger.debug("User {} added or updated", newUser.getUserId()); //$NON-NLS-1$
View Full Code Here


    public void handleMessage(final Message registerMessage, final Socket controlConnection) throws Exception {
        this.checkForRequiredAttributes(registerMessage);
        final UserData newUser = this.createNewUserWithRequiredAttributes(registerMessage, controlConnection);
        newUser.addEndpoint(this.getPublicEndpointFromSocket(controlConnection));
        if (registerMessage.hasAttribute(XorMappedAddress.class)) {
            newUser.addEndpoint(this.createEndpointFromAttributes(registerMessage));
        }
        this.userList.addOrUpdateUser(newUser);
        logger.debug("User {} added or updated", newUser.getUserId()); //$NON-NLS-1$
        this.sendSuccessResponse(registerMessage, controlConnection);
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.