Examples of toValue()


Examples of com.opentext.api.LLValue.toValue()

        LLSession.GetCARootCerts(certDir.getAbsolutePath(), rootCACertsList);
        int size = rootCACertsList.size();
        if (LOGGER.isLoggable(Level.CONFIG))
          LOGGER.config("Found " + size + " certificates");
        for (int j = 0; j < size; j++)
          list.add(rootCACertsList.toValue(j));
      }
      else {
        LLValue cert = new LLValue().setString(certEntry);
        list.add(cert);
      }
View Full Code Here

Examples of hirondelle.web4j.util.Stopwatch.toValue()

    stopwatch.start();
   
    aChain.doFilter(aRequest, aResponse);
   
    stopwatch.stop();
    addResponseTime(stopwatch.toValue(), aRequest);
    //fLogger.fine(fPerformanceHistory.toString());
    fLogger.fine("END PerformanceMonitor Filter. Response Time: " + stopwatch);
  }

  /**
 
View Full Code Here

Examples of hirondelle.web4j.util.Stopwatch.toValue()

    catch (IOException ex) {
      problem = "Cannot open connection to the URL : " + fTargetURL;
    }
   
    stopwatch.stop();
    if( stopwatch.toValue() > fTimeout * 1000) {
      problem = problem + "Response took too long : " + stopwatch;
    }
   
    if( Util.textHasContent(problem) ) {
      mailTroubleTicket(problem);
View Full Code Here

Examples of hirondelle.web4j.util.Stopwatch.toValue()

      logAndEmailSeriousProblem(ex, aRequest);
      aResponse.sendError(HttpServletResponse.SC_SERVICE_UNAVAILABLE);
    }
   
    stopwatch.stop();
    if ( stopwatch.toValue() >= fPOOR_PERFORMANCE_THRESHOLD ) {
      logAndEmailPerformanceProblem(stopwatch.toValue(), aRequest);
    }
  }

  /**
 
View Full Code Here

Examples of hirondelle.web4j.util.Stopwatch.toValue()

      aResponse.sendError(HttpServletResponse.SC_SERVICE_UNAVAILABLE);
    }
   
    stopwatch.stop();
    if ( stopwatch.toValue() >= fPOOR_PERFORMANCE_THRESHOLD ) {
      logAndEmailPerformanceProblem(stopwatch.toValue(), aRequest);
    }
  }

  /**
   Change the {@link ResponsePage} according to {@link Locale}.
View Full Code Here

Examples of org.apache.tapestry.ValueEncoder.toValue()

        if (InternalUtils.isNonBlank(values))
        {
            for (String value : values.split(";"))
            {
                Object objectValue = encoder.toValue(value);

                selected.add(objectValue);
            }
        }
View Full Code Here

Examples of org.apache.tapestry.ValueEncoder.toValue()

        if (InternalUtils.isNonBlank(values))
        {
            for (String value : values.split(";"))
            {
                Object objectValue = encoder.toValue(value);

                selected.add(objectValue);
            }
        }
View Full Code Here

Examples of org.apache.tapestry.services.ContextValueEncoder.toValue()

        replay();

        ContextValueEncoder cve = new ContextValueEncoderImpl(source);

        assertSame(cve.toValue(Long.class, clientValue), value);

        verify();
    }

}
View Full Code Here

Examples of org.apache.tapestry5.PrimaryKeyEncoder.toValue()

        expect(pke.getKeyType()).andReturn(Long.class);

        expect(pke.toKey(value)).andReturn(primaryKey);

        expect(pke.toValue(primaryKey)).andReturn(value);

        replay();

        ValueEncoder ve = coercion.coerce(pke);
View Full Code Here

Examples of org.apache.tapestry5.ValueEncoder.toValue()

                    Class parameterType = classCache.forName(parameterTypeName);

                    ValueEncoder valueEncoder = valueEncoderSource.getValueEncoder(parameterType);

                    Object value = valueEncoder.toValue(parameterValue);

                    if (parameterType.isPrimitive() && value == null)
                        throw new RuntimeException(
                                String.format(
                                        "Query parameter '%s' evaluates to null, but the event method parameter is type %s, a primitive.",
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.