Hello,
the session holds some attributes, among other things also the client orientation you are looking for.
you can fetch it by following code.
Code:
HttpServletRequest request = HttpSessionAccess.getCurrentRequest();
String orientation = request.getHeader("eclnt-orientation");
i hope this helped you.
Greetings,
Michael