本文整理汇总了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 ();
}