当前位置: 首页>>代码示例>>Java>>正文


Java VendorInfo.setVendorLocation方法代码示例

本文整理汇总了Java中com.helger.commons.vendor.VendorInfo.setVendorLocation方法的典型用法代码示例。如果您正苦于以下问题:Java VendorInfo.setVendorLocation方法的具体用法?Java VendorInfo.setVendorLocation怎么用?Java VendorInfo.setVendorLocation使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.helger.commons.vendor.VendorInfo的用法示例。


在下文中一共展示了VendorInfo.setVendorLocation方法的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));
  }
}
 
开发者ID:phax,项目名称:peppol-directory,代码行数:30,代码来源:AppWebAppListener.java

示例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);
}
 
开发者ID:phax,项目名称:as2-peppol-server,代码行数:31,代码来源:PEPPOLAS2WebAppListener.java


注:本文中的com.helger.commons.vendor.VendorInfo.setVendorLocation方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。