/** * Returns a UUID either from the UUID generator assigned to <tt>MessageBroker</tt>, * or from the <tt>UUIDUtils#createUUID</tt> if there is no assigned UUID generator. * * @return String the UUID. */ public String createUUID() { return uuidGenerator != null? uuidGenerator.createUUID() : UUIDUtils.createUUID(); }
public String flush() { if (count > 0) encodeBlock(); String r = drain(); count = 0; line = 0; work[0] = 0; work[1] = 0; work[2] = 0; return r; }
/** {@inheritDoc} */ public Object copy() { return new ToStringPrettyPrinter(); }
/** * Returns the <code>ResourceLoader</code> used to load localized strings. * * @return The <code>ResourceLoader</code> used to load localized strings. */ protected ResourceLoader getResourceLoader() { if (resourceLoader == null) resourceLoader = new PropertyStringResourceLoader(); return resourceLoader; }
/** * Get to the base exception (if any). * @param t the Throwable object * @return the base Exception object */ public static Throwable baseException(Throwable t) { Throwable wrapped = wrappedException(t); return wrapped != null? baseException(wrapped) : t; }
/** * Lists the classes in the signature of the method matched. * @return the classes in the signature of the method matched */ public String listExpectedTypes() { return listTypes(methodParamTypes); }
/** * Uses the current DocumentBuilderFactory to converts a String * representation of XML into a Document. * * @param xml XML serialized as a String * @return Document */ public static Document stringToDocument(String xml) { return stringToDocument(xml, true); }
public String flush() { return drain(); } }
/** * * Monitors a scheduled flush for a FlexClient for timeout. * * @param scheduledFlushTimeout The schedule flush task to monitor for timeout. */ public void monitorScheduledFlush(TimeoutAbstractObject scheduledFlushTimeout) { flexClientTimeoutManager.scheduleTimeout(scheduledFlushTimeout); }
public void setDefaultLocale(Locale locale) { defaultLocale = locale; resourceLoader.setDefaultLocale(defaultLocale); }
public void setSubscriptionTimeoutMillis(long value) { subscriptionTimeoutMillis = value; if (subscriptionTimeoutMillis > 0) { subscriberSessionManager = new TimeoutManager(); } }
public Object copy() { return new BasicPrettyPrinter(); } }
/** * */ public MethodMatcher getMethodMatcher() { if (methodMatcher == null) methodMatcher = new MethodMatcher(); return methodMatcher; }
/** * Returns the <code>ResourceLoader</code> used to load localized strings. * * @return The <code>ResourceLoader</code> used to load localized strings. */ protected ResourceLoader getResourceLoader() { if (resourceLoader == null) resourceLoader = new PropertyStringResourceLoader(); return resourceLoader; }
/** * Returns a UUID either from the UUID generator assigned to <tt>MessageBroker</tt>, * or from the <tt>UUIDUtils#createUUID</tt> if there is no assigned UUID generator. * * @return String the UUID. */ public String createUUID() { return uuidGenerator != null? uuidGenerator.createUUID() : UUIDUtils.createUUID(); }
/** * Lists the classes corresponding to actual invocation parameters once they have been * converted as best they could to match the classes in the invoked method's signature. * * @return the classes corresponding to actual invocation parameters once they have been * converted as best they could to match the classes in the invoked method's signature */ public String listConvertedTypes() { return listTypes(convertedSuppliedTypes); }
/** * Uses the current DocumentBuilderFactory to converts a String * representation of XML into a Document. * * @param xml XML serialized as a String * @return Document */ public static Document stringToDocument(String xml) { return stringToDocument(xml, true, false, false); }
public String flush() { return drain(); } }
/** * * Monitors an async poll for a FlexClient for timeout. * * @param asyncPollTimeout The async poll task to monitor for timeout. */ public void monitorAsyncPollTimeout(TimeoutAbstractObject asyncPollTimeout) { flexClientTimeoutManager.scheduleTimeout(asyncPollTimeout); }
/** * Lists the classes corresponding to actual invocation parameters once they have been * converted as best they could to match the classes in the invoked method's signature. * * @return the classes corresponding to actual invocation parameters once they have been * converted as best they could to match the classes in the invoked method's signature */ public String listConvertedTypes() { return listTypes(convertedSuppliedTypes); }