本文整理汇总了Java中com.helger.commons.vendor.VendorInfo.setVendorURL方法的典型用法代码示例。如果您正苦于以下问题:Java VendorInfo.setVendorURL方法的具体用法?Java VendorInfo.setVendorURL怎么用?Java VendorInfo.setVendorURL使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.helger.commons.vendor.VendorInfo
的用法示例。
在下文中一共展示了VendorInfo.setVendorURL方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}