congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ActionRequestWrapper
Code IndexAdd Tabnine to your IDE (free)

How to use
ActionRequestWrapper
in
javax.portlet.filter

Best Java code snippets using javax.portlet.filter.ActionRequestWrapper (Showing top 16 results out of 315)

origin: com.liferay.portal/com.liferay.portal.kernel

@Override
public String getParameter(String name) {
  String[] values = _params.get(name);
  if (_inherit && (values == null)) {
    return super.getParameter(name);
  }
  if (ArrayUtil.isNotEmpty(values)) {
    return values[0];
  }
  return null;
}
origin: com.liferay.portal/com.liferay.portal.kernel

@Override
public Map<String, String[]> getParameterMap() {
  Map<String, String[]> map = new HashMap<>();
  if (_inherit) {
    map.putAll(super.getParameterMap());
  }
  map.putAll(_params);
  return map;
}
origin: com.liferay.portal/com.liferay.portal.kernel

@Override
public Enumeration<String> getParameterNames() {
  Set<String> names = new LinkedHashSet<>();
  if (_inherit) {
    Enumeration<String> enu = super.getParameterNames();
    while (enu.hasMoreElements()) {
      names.add(enu.nextElement());
    }
  }
  names.addAll(_params.keySet());
  return Collections.enumeration(names);
}
origin: com.liferay.portal/com.liferay.portal.kernel

@Override
public String[] getParameterValues(String name) {
  String[] values = _params.get(name);
  if (_inherit && (values == null)) {
    return super.getParameterValues(name);
  }
  return values;
}
origin: com.liferay.portal/com.liferay.portal.kernel

@Override
public Principal getUserPrincipal() {
  if (_userPrincipal != null) {
    return _userPrincipal;
  }
  return super.getUserPrincipal();
}
origin: com.liferay.portal/com.liferay.portal.kernel

@Override
public String getRemoteUser() {
  if (_remoteUser != null) {
    return _remoteUser;
  }
  return super.getRemoteUser();
}
origin: org.springframework/org.springframework.web.portlet

@Override
public String[] getParameterValues(String name) {
  String[] values = getMultipartParameters().get(name);
  if (values != null) {
    return values;
  }
  return super.getParameterValues(name);
}
origin: com.liferay.portal/portal-kernel

public Principal getUserPrincipal() {
  if (_userPrincipal != null) {
    return _userPrincipal;
  }
  else {
    return super.getUserPrincipal();
  }
}
origin: com.liferay.portal/portal-kernel

public String getRemoteUser() {
  if (_remoteUser != null) {
    return _remoteUser;
  }
  else {
    return super.getRemoteUser();
  }
}
origin: org.springframework/spring-webmvc-portlet

@Override
public Enumeration<String> getParameterNames() {
  Set<String> paramNames = new HashSet<String>();
  Enumeration<String> paramEnum = super.getParameterNames();
  while (paramEnum.hasMoreElements()) {
    paramNames.add(paramEnum.nextElement());
  }
  paramNames.addAll(getMultipartParameters().keySet());
  return Collections.enumeration(paramNames);
}
origin: org.springframework/spring-webmvc-portlet

@Override
public String getParameter(String name) {
  String[] values = getMultipartParameters().get(name);
  if (values != null) {
    return (values.length > 0 ? values[0] : null);
  }
  return super.getParameter(name);
}
origin: org.springframework/spring-webmvc-portlet

@Override
public String[] getParameterValues(String name) {
  String[] values = getMultipartParameters().get(name);
  if (values != null) {
    return values;
  }
  return super.getParameterValues(name);
}
origin: org.springframework/spring-webmvc-portlet

@Override
public Map<String, String[]> getParameterMap() {
  Map<String, String[]> paramMap = new HashMap<String, String[]>();
  paramMap.putAll(super.getParameterMap());
  paramMap.putAll(getMultipartParameters());
  return paramMap;
}
origin: org.springframework/org.springframework.web.portlet

@Override
public Enumeration<String> getParameterNames() {
  Set<String> paramNames = new HashSet<String>();
  Enumeration paramEnum = super.getParameterNames();
  while (paramEnum.hasMoreElements()) {
    paramNames.add((String) paramEnum.nextElement());
  }
  paramNames.addAll(getMultipartParameters().keySet());
  return Collections.enumeration(paramNames);
}
origin: org.springframework/org.springframework.web.portlet

@Override
public String getParameter(String name) {
  String[] values = getMultipartParameters().get(name);
  if (values != null) {
    return (values.length > 0 ? values[0] : null);
  }
  return super.getParameter(name);
}
origin: org.springframework/org.springframework.web.portlet

@Override
@SuppressWarnings("unchecked")
public Map<String, String[]> getParameterMap() {
  Map<String, String[]> paramMap = new HashMap<String, String[]>();
  paramMap.putAll(super.getParameterMap());
  paramMap.putAll(getMultipartParameters());
  return paramMap;
}
javax.portlet.filterActionRequestWrapper

Javadoc

The ActionRequestWrapper provides a convenient implementation of the ActionRequest interface that can be subclassed by developers wishing to adapt the request. This class implements the Wrapper or Decorator pattern. Methods default to calling through to the wrapped request object.

Most used methods

  • getParameter
  • getParameterMap
  • getParameterNames
  • getParameterValues
  • getRemoteUser
  • getUserPrincipal

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (Timer)
  • onRequestPermissionsResult (Fragment)
  • requestLocationUpdates (LocationManager)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Reference (javax.naming)
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • JLabel (javax.swing)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now