Ejemplo n.º 1
0
 private String decodeWhile(final String s) {
   String result = s;
   try {
     result = URLDecoder.decode(result, Smartly.getCharset());
     while (result.contains("%")) {
       try {
         result = URLDecoder.decode(result, Smartly.getCharset());
       } catch (Throwable ignored) {
         break;
       }
     }
   } catch (UnsupportedEncodingException ignored) {
   }
   return result;
 }
Ejemplo n.º 2
0
 public String decode(final String s) {
   try {
     return URLDecoder.decode(s, Smartly.getCharset());
   } catch (UnsupportedEncodingException ignored) {
   }
   return s;
 }
Ejemplo n.º 3
0
 // ------------------------------------------------------------------------
 //                      Constructor
 // ------------------------------------------------------------------------
 public CMSPageEntityService() throws StandardCodedException {
   super(CMSDBFactory.getInstance().getDBMain(), CMSPageEntity.COLLECTION, Smartly.getLanguages());
 }