org.gatein.common.logging.Logger.debug()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(7.9k)|赞(0)|评价(0)|浏览(126)

本文整理了Java中org.gatein.common.logging.Logger.debug()方法的一些代码示例,展示了Logger.debug()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.debug()方法的具体详情如下:
包路径:org.gatein.common.logging.Logger
类名称:Logger
方法名:debug

Logger.debug介绍

暂无

代码示例

代码示例来源:origin: org.gatein.sso/sso-agent

protected void log(String message) 
{
  log.debug(message);
}

代码示例来源:origin: org.gatein.wci/wci-wci

protected String getCommandServletClassName() {
  String className = null;
  try {
    className = CommandServlet.class.getName();
    classLoader.loadClass(className);
  } catch(Exception ex) {
    className = null;
    log.debug("WCI integration skipped for context: /" + contextPath);
  }
  return className;
}

代码示例来源:origin: org.gatein.pc/pc-mc

void uninstall()
  {
   log.debug("Uninstalling");

   //
   portletApplicationLifeCycle.managedStop();

   //
   log.debug("Uninstalled");
  }
}

代码示例来源:origin: org.gatein.pc/pc-portlet

void uninstall()
  {
   log.debug("Uninstalling");

   //
   portletApplicationLifeCycle.managedDestroy();

   //
   log.debug("Uninstalled");
  }
}

代码示例来源:origin: org.gatein.sso/sso-agent

public void saveSSOCredentials(String username, HttpServletRequest httpRequest)
{
 //Use empty password....it shouldn't be needed...this is a SSO login. The password has
 //already been presented with the SSO server. It should not be passed around for
 //better security
 Credentials credentials = new Credentials(username, "");
 httpRequest.getSession().setAttribute(Credentials.CREDENTIALS, credentials);
 // This is needed when using default login module stack instead of SSOLoginModule. In this case, GateIn authentication is done thanks to PortalLoginModule.
 httpRequest.getSession().setAttribute(GenericAgent.AUTHENTICATED_CREDENTIALS, credentials);
 log.debug("Credentials of user " + username + " saved into HTTP session.");
}

代码示例来源:origin: org.gatein.integration/extension-component

private void stopConsumers() {
  try {
    consumerRegistry.stop();
  } catch (Exception e) {
    log.debug(e);
    // We do not throw an exception here, as we cannot guarantee that we'll close before the connection
    // gets closed, so, we just shutdown uncleanly...
  }
  consumerRegistry = null;
}

代码示例来源:origin: org.gatein.wci/wci-jetty8

@Override
  protected void doStop() throws Exception
  {
   LOG.debug("Remove WCI infrastructure from Jetty Server");
   if(containerContext != null)
   {
     containerContext.stop();
   }
  }
}

代码示例来源:origin: org.exoplatform.portal/exo.portal.component.web.server

/**
* Clean up temporary files that are uploaded in the Session but not removed yet
* 
* @param session
*/
public void cleanUp(HttpSession session)
{
 log.debug("Cleaning up uploaded files for temporariness");
 Set<String> uploadIds = (Set<String>)session.getAttribute(UploadService.UPLOAD_RESOURCES_STACK);
 if (uploadIds != null)
 {
   for (String id : uploadIds)
   {
    removeUploadResource(id);
    uploadLimits.remove(id);
   }
 }
}

代码示例来源:origin: org.exoplatform.portal/exo.portal.component.common

private <O> ConvertedTypeModel<O, ?> buildConvertedType(Class<O> javaType, ConvertedTypeMetaData typeMetaData)
{
 log.debug("About to build type model from type type metadata " + typeMetaData);
 //
 Class<? extends TypeConverter<?, ?>> converterClass = typeMetaData.getConverterClass();
 ParameterizedType converterParameterizedType = (ParameterizedType)converterClass.getGenericSuperclass();
 if (!converterParameterizedType.getActualTypeArguments()[0].equals(javaType))
 {
   throw new TypeException("The declared type parameter in the converter " + converterClass.getName() +
    " does not match the type it is related to " + javaType.getName());
 }
 //
 Class<? extends TypeConverter<O, ?>> converterJavaType = (Class<TypeConverter<O, ?>>)converterClass;
 //
 return buildConvertedType(javaType, converterJavaType);
}

代码示例来源:origin: org.gatein.sso/sso-agent

/**
* Method is invoked if we are performing initialization through servlet api (web filter)
*/
@Override
protected final void afterInit(FilterConfig filterConfig) throws ServletException
{
 this.interceptorContext = new SSOInterceptorInitializationContext(filterConfig, null, null);
 log.debug("Interceptor initialized with context " + interceptorContext);
 initImpl();
}

代码示例来源:origin: org.gatein.wci/wci-jetty8

@Override
protected void doStart() throws Exception
{
 LOG.debug("Init WCI infrastructure in Jetty Server");
 containerContext = new Jetty8ServletContainerContext(server);
 containerContext.start();
}

代码示例来源:origin: org.gatein.sso/sso-agent

/**
* Method is invoked if we are performing initialization through exo kernel
*/
public final void initWithParams(InitParams params, ExoContainerContext containerContext)
{
 this.interceptorContext = new SSOInterceptorInitializationContext(null, params, containerContext);
 log.debug("Interceptor initialized with context " + interceptorContext);
 initImpl();
}

代码示例来源:origin: org.gatein.sso/sso-agent

public void validateTicket(HttpServletRequest httpRequest, String ticket) throws Exception
  {        
    Cas20ProxyTicketValidator ticketValidator = new Cas20ProxyTicketValidator(casServerUrl);
    ticketValidator.setRenew(this.renewTicket);
    
    //String serviceUrl = "http://"+ httpRequest.getServerName() +":" + httpRequest.getServerPort() + 
    //httpRequest.getContextPath() +"/private/classic";
    Assertion assertion = ticketValidator.validate(ticket, this.casServiceUrl); 
    
    log.debug("------------------------------------------------------------------------------------");
    log.debug("Service: "+this.casServiceUrl);
    log.debug("Principal: "+assertion.getPrincipal().getName());
    log.debug("------------------------------------------------------------------------------------");

    String principal = assertion.getPrincipal().getName();
    this.saveSSOCredentials(principal, httpRequest);
  }        
}

代码示例来源:origin: org.gatein.sso/sso-agent

public OpenSSOAgentImpl(InitParams params)
{
  // TODO: Read serverUrl and cookieName from params
  if (params == null)
  {
    this.lineSeparator = null;
    return;
  }
  ValueParam lineSeparatorParam = params.getValueParam("lineSeparator");
  if (lineSeparatorParam != null)
  {
    this.lineSeparator = lineSeparatorParam.getValue();
  }
  else
  {
    this.lineSeparator = null;
  }
  log.debug("Agent configured with line separator: " + this.lineSeparator);
}

代码示例来源:origin: org.gatein.pc/pc-portlet

public void add(String contentType, ContainerWindowStateInfo windowState)
{
 try
 {
   supportedWindowStates.put(contentType, windowState);
 }
 catch (IllegalArgumentException e)
 {
   log.debug("'" + contentType + "' is not a valid MIME type: ignoring!", e);
 }
}

代码示例来源:origin: org.gatein.pc/pc-portlet

public void add(String contentType, ContainerModeInfo mode)
{
 try
 {
   supportedModes.put(contentType, mode);
 }
 catch (IllegalArgumentException e)
 {
   log.debug("'" + contentType + "' is not a valid MIME type: ignoring!", e);
 }
}

代码示例来源:origin: org.exoplatform.portal/exo.portal.component.common

private <D> void setOption(ChromatticBuilder builder, ChromatticBuilder.Option<D> option, String value)
{
 log.debug("Setting Chromattic option " + option.getDisplayName());
 builder.setOptionValue(option, option.getInstance(value).getValue());
}

代码示例来源:origin: org.gatein.pc/pc-portlet

public void stop()
{
 // Wait at most 60 seconds before all invocations are done
 log.debug("Trying to close the valve");
 boolean done = valve.closing(60000);
 if (!done)
 {
   log.warn("The valve is still holding invocations, continue anyway");
 }
 //
 valve.closed();
 //
 status = LifeCycleStatus.CREATED;
 // Destroy the portlet object
 destroyPortlet(portlet);
}

代码示例来源:origin: org.gatein.wci/wci-jetty8

private void unregisterWebAppContext(WebAppContext ctx)
{
 if (monitoredContexts.contains(ctx.getServletContext().getServletContextName()))
 {
   monitoredContexts.remove(ctx.getServletContext().getServletContextName());
   if (!ctx.isStopped())
   {
    stopWebAppContext(ctx);
   }
   LOG.debug("Unregister lifecycle listener on webapp " + ctx.getContextPath());
   ctx.removeLifeCycleListener(this);
 }
}

代码示例来源:origin: org.gatein.wci/wci-jetty8

private void registerWebAppContext(WebAppContext ctx)
{
 if (!monitoredContexts.contains(ctx.getServletContext().getServletContextName()))
 {
   LOG.debug("Register lifecycle listener on webapp " + ctx.getContextPath());
   ctx.addLifeCycleListener(this);
   if (ctx.isStarted())
   {
    startWebAppContext(ctx);
   }
   monitoredContexts.add(ctx.getServletContext().getServletContextName());
 }
}

相关文章