Class LocaleResource


  • @Path("/lumsetlocale")
    public class LocaleResource
    extends java.lang.Object
    Resource that treat the change of Locale.
    Since:
    6.1.0
    Version:
    $Revision$ $Date$
    • Constructor Summary

      Constructors 
      Constructor Description
      LocaleResource()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void setLocalePost​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String localeId)
      Resource that accepts HTTP requests with POST method.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LocaleResource

        public LocaleResource()
    • Method Detail

      • setLocalePost

        @Path("/{locale}")
        @POST
        public void setLocalePost​(@Context
                                  javax.servlet.http.HttpServletRequest request,
                                  @Context
                                  javax.servlet.http.HttpServletResponse response,
                                  @PathParam("locale")
                                  java.lang.String localeId)
        Resource that accepts HTTP requests with POST method.
        Parameters:
        request - request object that contains all informations inputed by the user.
        response - response object that will be sent to the user.
        localeId - the locale to be change.
        Since:
        6.1.0