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

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

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

Logger.debug介绍

暂无

代码示例

代码示例来源:origin: org.ocpsoft.rewrite/rewrite-impl

  1. @Override
  2. public Object getInstance(Class<?> type)
  3. {
  4. Object result = null;
  5. try {
  6. result = type.newInstance();
  7. }
  8. catch (Exception e) {
  9. log.debug("Could not create instance of type [" + type.getName() + "] through reflection.", e);
  10. }
  11. return result;
  12. }

代码示例来源:origin: ocpsoft/rewrite

  1. @Override
  2. public Object getInstance(Class<?> type)
  3. {
  4. Object result = null;
  5. try {
  6. result = type.newInstance();
  7. }
  8. catch (Exception e) {
  9. log.debug("Could not create instance of type [" + type.getName() + "] through reflection.", e);
  10. }
  11. return result;
  12. }

代码示例来源:origin: ocpsoft/rewrite

  1. @Override
  2. public Object getInstance(Class<?> type)
  3. {
  4. Object result = null;
  5. try {
  6. result = type.newInstance();
  7. }
  8. catch (Exception e) {
  9. log.debug("Could not create instance of type [" + type.getName() + "] through reflection.", e);
  10. }
  11. return result;
  12. }

代码示例来源:origin: org.ocpsoft.rewrite/rewrite-impl-servlet

  1. @Override
  2. public void redirectTemporary(final String location)
  3. {
  4. log.debug("Temporary Redirect (302) requested: [" + location + "]");
  5. HttpServletResponse response = getResponse();
  6. if (response.isCommitted())
  7. {
  8. throw new IllegalStateException("Response is already committed. Cannot issue redirect.");
  9. }
  10. dispatchResource = encodeRedirectUrl(response, location);
  11. this.flow = ServletRewriteFlow.REDIRECT_TEMPORARY;
  12. }

代码示例来源:origin: ocpsoft/rewrite

  1. /**
  2. * The visitor must be initialized with the handlers to call for specific annotations
  3. */
  4. public ClassVisitorImpl(List<AnnotationHandler<Annotation>> handlers, Object payload)
  5. {
  6. handlerList = new ArrayList<AnnotationHandler<Annotation>>(handlers);
  7. Collections.sort(handlerList, new WeightedComparator());
  8. this.payload = payload;
  9. if (log.isDebugEnabled())
  10. {
  11. log.debug("Initialized to use {} AnnotationHandlers..", handlers.size());
  12. }
  13. }

代码示例来源:origin: ocpsoft/rewrite

  1. /**
  2. * The visitor must be initialized with the handlers to call for specific annotations
  3. */
  4. public ClassVisitorImpl(List<AnnotationHandler<Annotation>> handlers, Object payload)
  5. {
  6. handlerList = new ArrayList<AnnotationHandler<Annotation>>(handlers);
  7. Collections.sort(handlerList, new WeightedComparator());
  8. this.payload = payload;
  9. if (log.isDebugEnabled())
  10. {
  11. log.debug("Initialized to use {} AnnotationHandlers..", handlers.size());
  12. }
  13. }

代码示例来源:origin: ocpsoft/rewrite

  1. @Override
  2. public void redirectTemporary(final String location)
  3. {
  4. log.debug("Temporary Redirect (302) requested: [" + location + "]");
  5. HttpServletResponse response = getResponse();
  6. if (response.isCommitted())
  7. {
  8. throw new IllegalStateException("Response is already committed. Cannot issue redirect.");
  9. }
  10. dispatchResource = encodeRedirectUrl(response, location);
  11. this.flow = ServletRewriteFlow.REDIRECT_TEMPORARY;
  12. }

代码示例来源:origin: ocpsoft/rewrite

  1. @Override
  2. public void redirectPermanent(final String location)
  3. {
  4. log.debug("Permanent Redirect (301) requested: [" + location + "]");
  5. HttpServletResponse response = getResponse();
  6. if (response.isCommitted())
  7. {
  8. throw new IllegalStateException("Response is already committed. Cannot issue redirect.");
  9. }
  10. dispatchResource = encodeRedirectUrl(response, location);
  11. this.flow = ServletRewriteFlow.REDIRECT_PERMANENT;
  12. }

代码示例来源:origin: ocpsoft/rewrite

  1. @Override
  2. public void redirectTemporary(final String location)
  3. {
  4. log.debug("Temporary Redirect (302) requested: [" + location + "]");
  5. HttpServletResponse response = getResponse();
  6. if (response.isCommitted())
  7. {
  8. throw new IllegalStateException("Response is already committed. Cannot issue redirect.");
  9. }
  10. dispatchResource = encodeRedirectUrl(response, location);
  11. this.flow = ServletRewriteFlow.REDIRECT_TEMPORARY;
  12. }

代码示例来源:origin: ocpsoft/rewrite

  1. @Override
  2. public <T> void enrich(final T service)
  3. {
  4. SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(service);
  5. if (log.isDebugEnabled())
  6. log.debug("Enriched instance of service [" + service.getClass().getName() + "]");
  7. }

代码示例来源:origin: org.ocpsoft.rewrite/rewrite-impl-servlet

  1. @Override
  2. public void redirectPermanent(final String location)
  3. {
  4. log.debug("Permanent Redirect (301) requested: [" + location + "]");
  5. HttpServletResponse response = getResponse();
  6. if (response.isCommitted())
  7. {
  8. throw new IllegalStateException("Response is already committed. Cannot issue redirect.");
  9. }
  10. dispatchResource = encodeRedirectUrl(response, location);
  11. this.flow = ServletRewriteFlow.REDIRECT_PERMANENT;
  12. }

代码示例来源:origin: org.ocpsoft.rewrite/rewrite-integration-spring

  1. @Override
  2. public <T> void enrich(final T service)
  3. {
  4. SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(service);
  5. if (log.isDebugEnabled())
  6. log.debug("Enriched instance of service [" + service.getClass().getName() + "]");
  7. }

代码示例来源:origin: ocpsoft/rewrite

  1. @Override
  2. public void redirectPermanent(final String location)
  3. {
  4. log.debug("Permanent Redirect (301) requested: [" + location + "]");
  5. HttpServletResponse response = getResponse();
  6. if (response.isCommitted())
  7. {
  8. throw new IllegalStateException("Response is already committed. Cannot issue redirect.");
  9. }
  10. dispatchResource = encodeRedirectUrl(response, location);
  11. this.flow = ServletRewriteFlow.REDIRECT_PERMANENT;
  12. }

代码示例来源:origin: org.ocpsoft.rewrite/rewrite-integration-faces

  1. public void handleNavigation(final PhaseEvent event)
  2. {
  3. FacesContext facesContext = event.getFacesContext();
  4. HttpServletRequest request = ((HttpServletRequest) facesContext.getExternalContext().getRequest());
  5. String navigationCase = (String) request.getAttribute(NavigatingInvocationResultHandler.QUEUED_NAVIGATION);
  6. if (navigationCase != null)
  7. {
  8. request.setAttribute(NavigatingInvocationResultHandler.QUEUED_NAVIGATION, null);
  9. NavigationHandler navigationHandler = facesContext.getApplication().getNavigationHandler();
  10. log.debug("Passing queued " + PhaseAction.class.getName() + " result [" + navigationCase
  11. + "] to NavigationHandler.handleNavigation()");
  12. navigationHandler.handleNavigation(facesContext, "", navigationCase);
  13. }
  14. }

代码示例来源:origin: ocpsoft/rewrite

  1. public void handleNavigation(final PhaseEvent event)
  2. {
  3. FacesContext facesContext = event.getFacesContext();
  4. HttpServletRequest request = ((HttpServletRequest) facesContext.getExternalContext().getRequest());
  5. String navigationCase = (String) request.getAttribute(NavigatingInvocationResultHandler.QUEUED_NAVIGATION);
  6. if (navigationCase != null)
  7. {
  8. request.setAttribute(NavigatingInvocationResultHandler.QUEUED_NAVIGATION, null);
  9. NavigationHandler navigationHandler = facesContext.getApplication().getNavigationHandler();
  10. log.debug("Passing queued " + PhaseAction.class.getName() + " result [" + navigationCase
  11. + "] to NavigationHandler.handleNavigation()");
  12. navigationHandler.handleNavigation(facesContext, "", navigationCase);
  13. }
  14. }

代码示例来源:origin: ocpsoft/rewrite

  1. @Override
  2. @SuppressWarnings("unchecked")
  3. public <T> void enrich(final T service)
  4. {
  5. if (service != null)
  6. {
  7. BeanManager manager = getBeanManager();
  8. CreationalContext<Object> context = manager.createCreationalContext(null);
  9. InjectionTarget<Object> injectionTarget = (InjectionTarget<Object>) manager
  10. .createInjectionTarget(manager.createAnnotatedType(service.getClass()));
  11. injectionTarget.inject(service, context);
  12. if ((context != null) && log.isDebugEnabled())
  13. {
  14. log.debug("Enriched non-contextual instance of service [" + service.getClass().getName() + "]");
  15. }
  16. }
  17. }

代码示例来源:origin: org.ocpsoft.rewrite/rewrite-config-servlet

  1. @Override
  2. public void performHttp(HttpServletRewrite event, EvaluationContext context)
  3. {
  4. InputStream stream = null;
  5. try {
  6. File file = new File(target.build(event, context, Transpositions.encodePath()));
  7. stream = new BufferedInputStream(new FileInputStream(file));
  8. log.debug("Streaming from file [" + file + "] to response.");
  9. Response.write(stream).perform(event, context);
  10. }
  11. catch (Exception e) {
  12. throw new RewriteException("Error streaming file.", e);
  13. }
  14. finally
  15. {
  16. if (stream != null)
  17. try {
  18. stream.close();
  19. }
  20. catch (IOException e) {
  21. throw new RewriteException("Error closing stream.", e);
  22. }
  23. }
  24. }

代码示例来源:origin: ocpsoft/rewrite

  1. @Override
  2. public void performHttp(HttpServletRewrite event, EvaluationContext context)
  3. {
  4. InputStream stream = null;
  5. try {
  6. File file = new File(target.build(event, context, Transpositions.encodePath()));
  7. stream = new BufferedInputStream(new FileInputStream(file));
  8. log.debug("Streaming from file [" + file + "] to response.");
  9. Response.write(stream).perform(event, context);
  10. }
  11. catch (Exception e) {
  12. throw new RewriteException("Error streaming file.", e);
  13. }
  14. finally
  15. {
  16. if (stream != null)
  17. try {
  18. stream.close();
  19. }
  20. catch (IOException e) {
  21. throw new RewriteException("Error closing stream.", e);
  22. }
  23. }
  24. }

代码示例来源:origin: ocpsoft/rewrite

  1. @Override
  2. public void performHttp(HttpServletRewrite event, EvaluationContext context)
  3. {
  4. InputStream stream = null;
  5. try {
  6. File file = new File(target.build(event, context, Transpositions.encodePath()));
  7. stream = new BufferedInputStream(new FileInputStream(file));
  8. log.debug("Streaming from file [" + file + "] to response.");
  9. Response.write(stream).perform(event, context);
  10. }
  11. catch (Exception e) {
  12. throw new RewriteException("Error streaming file.", e);
  13. }
  14. finally
  15. {
  16. if (stream != null)
  17. try {
  18. stream.close();
  19. }
  20. catch (IOException e) {
  21. throw new RewriteException("Error closing stream.", e);
  22. }
  23. }
  24. }

代码示例来源:origin: ocpsoft/rewrite

  1. private void checkConfLocal(final Conf conf)
  2. {
  3. if (conf.isOk() && conf.isEngineEnabled()) {
  4. urlRewriter = new UrlRewriter(conf);
  5. log.debug("Tuckey UrlRewriteFilter configuration loaded (Status: OK)");
  6. }
  7. else {
  8. if (!conf.isOk()) {
  9. log.error("Tuckey UrlRewriteFilter configuration failed (Status: ERROR)");
  10. }
  11. if (!conf.isEngineEnabled()) {
  12. log.warn("Tuckey UrlRewriteFilter engine explicitly disabled in configuration");
  13. }
  14. if (urlRewriter != null) {
  15. log.debug("Tuckey UrlRewriteFilter configuration unloaded");
  16. urlRewriter = null;
  17. }
  18. }
  19. }

相关文章