getUser() method

Returns the user for this session, if any.

Syntax

public User getUser ()

Returns

an object of whatever class is being returned by the active implementation of the Server class, or null if this session is not user-specific.