Skip to content

Instantly share code, notes, and snippets.

@slemarchand
Last active January 8, 2016 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slemarchand/7696f4dc0e1e793eb8d2 to your computer and use it in GitHub Desktop.
Save slemarchand/7696f4dc0e1e793eb8d2 to your computer and use it in GitHub Desktop.
import com.liferay.portal.util.*;
request = PortalUtil.getOriginalServletRequest(PortalUtil.getHttpServletRequest(actionRequest));
println(request.getServerName());
println(request.getServerPort());
println(request.isSecure());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment