Codota Logo
ResourceResponse.setLocale
Code IndexAdd Codota to your IDE (free)

How to use
setLocale
method
in
javax.portlet.ResourceResponse

Best Java code snippets using javax.portlet.ResourceResponse.setLocale (Showing top 13 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: javax.portlet/portlet-api

@Override
public void setLocale(Locale loc) {
 ((ResourceResponse)response).setLocale(loc);
}
origin: org.apache.portals.pluto/pluto-container

@Override
public void setLocale(Locale loc) {
 if (!included && (portletResponse instanceof ResourceResponse)) {
   ((ResourceResponse) portletResponse).setLocale(loc);
 }
}

origin: org.apache.portals/portlet-api_2.1.0_spec

/**
 * The default behavior of this method is to call 
 * <code>setLocale(Locale loc)</code> on the wrapped response object.
 */
public void setLocale(Locale loc) {
  response.setLocale(loc);
  return;
}
origin: org.onehippo.ecm.hst/hst-commons

protected void setResponseLocale(Locale locale) {
  if (isResourceResponse) {
    ((ResourceResponse) this.response).setLocale(locale);
  }
}
origin: com.liferay.faces/liferay-faces-bridge-impl

@Override
public void setLocale(Locale locale) {
  wrappedResourceResponse.setLocale(locale);
}
origin: org.jasig.portal/uPortal-web

@Override
public void setLocale(Locale locale) {
  resourceResponse.setLocale(locale);
}
origin: liferay/liferay-faces

@Override
public void setLocale(Locale locale) {
  wrappedResourceResponse.setLocale(locale);
}
origin: com.liferay.faces/liferay-faces-bridge-impl

public void setLocale(Locale loc) {
  PortletResponse portletResponse = getWrapped();
  if (portletResponse instanceof ResourceResponse) {
    ResourceResponse resourceResponse = (ResourceResponse) portletResponse;
    resourceResponse.setLocale(loc);
  }
  else {
    // ignore / no-op
  }
}
origin: liferay/liferay-faces

public void setLocale(Locale loc) {
  PortletResponse portletResponse = getWrapped();
  if (portletResponse instanceof ResourceResponse) {
    ResourceResponse resourceResponse = (ResourceResponse) portletResponse;
    resourceResponse.setLocale(loc);
  }
  else {
    // ignore / no-op
  }
}
origin: com.liferay.faces/liferay-faces-bridge-impl

public void setLocale(Locale loc) {
  getResponse().setLocale(loc);
}
origin: liferay/liferay-faces

public void setLocale(Locale loc) {
  getResponse().setLocale(loc);
}
origin: org.ops4j.pax.wicket/pax-wicket-service

resourceResponse.setLocale(locale);
origin: org.wicketstuff/wicketstuff-portlet

resourceResponse.setLocale(locale);
javax.portletResourceResponsesetLocale

Javadoc

Sets the locale of the response, setting the headers (including the Content-Type's charset) as appropriate. This method should be called before a call to getWriter(). By default, the response locale is the default locale provided by the portlet container.

Popular methods of ResourceResponse

  • setContentType
  • getPortletOutputStream
  • setProperty
  • setContentLength
    Sets the length of the content body in the response.
  • getWriter
  • setCharacterEncoding
    Sets the character encoding (MIME charset) of the response being sent to the client, for example, to
  • addProperty
  • createResourceURL
  • createActionURL
  • createRenderURL
  • flushBuffer
  • getCharacterEncoding
  • flushBuffer,
  • getCharacterEncoding,
  • getContentType,
  • getLocale,
  • getBufferSize,
  • getCacheControl,
  • isCommitted,
  • reset,
  • resetBuffer

Popular in Java

  • Reactive rest calls using spring rest template
  • putExtra (Intent)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • Color (java.awt)
    The Color class is used encapsulate colors in the default sRGB color space or colors in arbitrary co
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Path (java.nio.file)
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now