本文整理匯總了Java中com.helger.commons.vendor.VendorInfo類的典型用法代碼示例。如果您正苦於以下問題:Java VendorInfo類的具體用法?Java VendorInfo怎麽用?Java VendorInfo使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
VendorInfo類屬於com.helger.commons.vendor包,在下文中一共展示了VendorInfo類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: initGlobalSettings
import com.helger.commons.vendor.VendorInfo; //導入依賴的package包/類
@Override
protected void initGlobalSettings ()
{
// Internal stuff:
VendorInfo.setVendorName ("Philip Helger");
VendorInfo.setVendorURL ("http://www.helger.com");
VendorInfo.setVendorEmail ("[email protected]");
VendorInfo.setVendorLocation ("Vienna, Austria");
VendorInfo.setInceptionYear (2015);
if (PDServerConfiguration.isForceRoot ())
{
// Enforce an empty context path according to the specs!
ServletContextPathHolder.setCustomContextPath ("");
}
RequestParameterManager.getInstance ().setParameterHandler (new RequestParameterHandlerURLPathNamed ());
AppInternalErrorHandler.doSetup ();
final ConfigurationFileManager aCfgMgr = ConfigurationFileManager.getInstance ();
aCfgMgr.registerConfigurationFile (new ConfigurationFile (new ClassPathResource ("log4j2.xml")).setDescription ("log4j configuration file")
.setSyntaxHighlightLanguage (EConfigurationFileSyntax.XML));
if (PDServerConfiguration.getConfigFile ().isRead ())
{
aCfgMgr.registerConfigurationFile (new ConfigurationFile (PDServerConfiguration.getConfigFile ()
.getReadResource ()).setDescription ("PEPPOL Directory properties")
.setSyntaxHighlightLanguage (EConfigurationFileSyntax.PROPERTIES));
}
}
示例2: initGlobalSettings
import com.helger.commons.vendor.VendorInfo; //導入依賴的package包/類
@Override
protected void initGlobalSettings ()
{
VendorInfo.setVendorName ("Philip Helger");
VendorInfo.setInceptionYear (2015);
VendorInfo.setVendorEmail ("[email protected]");
VendorInfo.setVendorURL ("https://github.com/phax/as2-peppol-server");
VendorInfo.setVendorLocation ("Vienna");
_checkSettings ();
// Use path name instead of parameter name for menu item IDs
RequestParameterManager.getInstance ().setParameterHandler (new RequestParameterHandlerURLPathNamed ());
// For debugging
if (GlobalDebug.isDebugMode ())
{
RequestTracker.getInstance ().getRequestTrackingMgr ().setLongRunningCheckEnabled (false);
}
else
{
// For performance reasons
ValueEnforcer.setEnabled (false);
}
PhotonGlobalState.removeAllApplicationServletPathMappings ();
PhotonGlobalState.state (CApplicationID.APP_ID_SECURE)
.setServletPath (AbstractSecureApplicationServlet.SERVLET_DEFAULT_PATH);
PhotonGlobalState.getInstance ().setDefaultApplicationID (CApplicationID.APP_ID_SECURE);
}
示例3: PageLayoutPDF
import com.helger.commons.vendor.VendorInfo; //導入依賴的package包/類
/**
* Constructor. Initializes Author, CreationDate and Creator from class
* {@link VendorInfo}.
*/
public PageLayoutPDF ()
{
m_sDocumentAuthor = VendorInfo.getVendorName () + " " + VendorInfo.getVendorURLWithoutProtocol ();
m_aDocumentCreationDate = Calendar.getInstance ();
m_sDocumentCreator = VendorInfo.getVendorName ();
}