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

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

本文整理了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

  1. protected void log(String message)
  2. {
  3. log.debug(message);
  4. }

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

  1. protected String getCommandServletClassName() {
  2. String className = null;
  3. try {
  4. className = CommandServlet.class.getName();
  5. classLoader.loadClass(className);
  6. } catch(Exception ex) {
  7. className = null;
  8. log.debug("WCI integration skipped for context: /" + contextPath);
  9. }
  10. return className;
  11. }

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

  1. void uninstall()
  2. {
  3. log.debug("Uninstalling");
  4. //
  5. portletApplicationLifeCycle.managedStop();
  6. //
  7. log.debug("Uninstalled");
  8. }
  9. }

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

  1. void uninstall()
  2. {
  3. log.debug("Uninstalling");
  4. //
  5. portletApplicationLifeCycle.managedDestroy();
  6. //
  7. log.debug("Uninstalled");
  8. }
  9. }

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

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

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

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

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

  1. @Override
  2. protected void doStop() throws Exception
  3. {
  4. LOG.debug("Remove WCI infrastructure from Jetty Server");
  5. if(containerContext != null)
  6. {
  7. containerContext.stop();
  8. }
  9. }
  10. }

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

  1. /**
  2. * Clean up temporary files that are uploaded in the Session but not removed yet
  3. *
  4. * @param session
  5. */
  6. public void cleanUp(HttpSession session)
  7. {
  8. log.debug("Cleaning up uploaded files for temporariness");
  9. Set<String> uploadIds = (Set<String>)session.getAttribute(UploadService.UPLOAD_RESOURCES_STACK);
  10. if (uploadIds != null)
  11. {
  12. for (String id : uploadIds)
  13. {
  14. removeUploadResource(id);
  15. uploadLimits.remove(id);
  16. }
  17. }
  18. }

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

  1. private <O> ConvertedTypeModel<O, ?> buildConvertedType(Class<O> javaType, ConvertedTypeMetaData typeMetaData)
  2. {
  3. log.debug("About to build type model from type type metadata " + typeMetaData);
  4. //
  5. Class<? extends TypeConverter<?, ?>> converterClass = typeMetaData.getConverterClass();
  6. ParameterizedType converterParameterizedType = (ParameterizedType)converterClass.getGenericSuperclass();
  7. if (!converterParameterizedType.getActualTypeArguments()[0].equals(javaType))
  8. {
  9. throw new TypeException("The declared type parameter in the converter " + converterClass.getName() +
  10. " does not match the type it is related to " + javaType.getName());
  11. }
  12. //
  13. Class<? extends TypeConverter<O, ?>> converterJavaType = (Class<TypeConverter<O, ?>>)converterClass;
  14. //
  15. return buildConvertedType(javaType, converterJavaType);
  16. }

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

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

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

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

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

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

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

  1. public void validateTicket(HttpServletRequest httpRequest, String ticket) throws Exception
  2. {
  3. Cas20ProxyTicketValidator ticketValidator = new Cas20ProxyTicketValidator(casServerUrl);
  4. ticketValidator.setRenew(this.renewTicket);
  5. //String serviceUrl = "http://"+ httpRequest.getServerName() +":" + httpRequest.getServerPort() +
  6. //httpRequest.getContextPath() +"/private/classic";
  7. Assertion assertion = ticketValidator.validate(ticket, this.casServiceUrl);
  8. log.debug("------------------------------------------------------------------------------------");
  9. log.debug("Service: "+this.casServiceUrl);
  10. log.debug("Principal: "+assertion.getPrincipal().getName());
  11. log.debug("------------------------------------------------------------------------------------");
  12. String principal = assertion.getPrincipal().getName();
  13. this.saveSSOCredentials(principal, httpRequest);
  14. }
  15. }

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

  1. public OpenSSOAgentImpl(InitParams params)
  2. {
  3. // TODO: Read serverUrl and cookieName from params
  4. if (params == null)
  5. {
  6. this.lineSeparator = null;
  7. return;
  8. }
  9. ValueParam lineSeparatorParam = params.getValueParam("lineSeparator");
  10. if (lineSeparatorParam != null)
  11. {
  12. this.lineSeparator = lineSeparatorParam.getValue();
  13. }
  14. else
  15. {
  16. this.lineSeparator = null;
  17. }
  18. log.debug("Agent configured with line separator: " + this.lineSeparator);
  19. }

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

  1. public void add(String contentType, ContainerWindowStateInfo windowState)
  2. {
  3. try
  4. {
  5. supportedWindowStates.put(contentType, windowState);
  6. }
  7. catch (IllegalArgumentException e)
  8. {
  9. log.debug("'" + contentType + "' is not a valid MIME type: ignoring!", e);
  10. }
  11. }

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

  1. public void add(String contentType, ContainerModeInfo mode)
  2. {
  3. try
  4. {
  5. supportedModes.put(contentType, mode);
  6. }
  7. catch (IllegalArgumentException e)
  8. {
  9. log.debug("'" + contentType + "' is not a valid MIME type: ignoring!", e);
  10. }
  11. }

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

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

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

  1. public void stop()
  2. {
  3. // Wait at most 60 seconds before all invocations are done
  4. log.debug("Trying to close the valve");
  5. boolean done = valve.closing(60000);
  6. if (!done)
  7. {
  8. log.warn("The valve is still holding invocations, continue anyway");
  9. }
  10. //
  11. valve.closed();
  12. //
  13. status = LifeCycleStatus.CREATED;
  14. // Destroy the portlet object
  15. destroyPortlet(portlet);
  16. }

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

  1. private void unregisterWebAppContext(WebAppContext ctx)
  2. {
  3. if (monitoredContexts.contains(ctx.getServletContext().getServletContextName()))
  4. {
  5. monitoredContexts.remove(ctx.getServletContext().getServletContextName());
  6. if (!ctx.isStopped())
  7. {
  8. stopWebAppContext(ctx);
  9. }
  10. LOG.debug("Unregister lifecycle listener on webapp " + ctx.getContextPath());
  11. ctx.removeLifeCycleListener(this);
  12. }
  13. }

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

  1. private void registerWebAppContext(WebAppContext ctx)
  2. {
  3. if (!monitoredContexts.contains(ctx.getServletContext().getServletContextName()))
  4. {
  5. LOG.debug("Register lifecycle listener on webapp " + ctx.getContextPath());
  6. ctx.addLifeCycleListener(this);
  7. if (ctx.isStarted())
  8. {
  9. startWebAppContext(ctx);
  10. }
  11. monitoredContexts.add(ctx.getServletContext().getServletContextName());
  12. }
  13. }

相关文章