com.liferay.faces.util.logging.Logger.trace()方法的使用及代码示例

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

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

Logger.trace介绍

暂无

代码示例

代码示例来源:origin: com.liferay.faces/liferay-faces-bridge-impl

protected void doFacesHeaders(RenderRequest renderRequest, RenderResponse renderResponse) {
  logger.trace(
    "doFacesHeaders(RenderRequest, RenderResponse) this=[{0}], renderRequest=[{1}], renderResponse=[{2}]", this,
    renderRequest, renderResponse);
}

代码示例来源:origin: liferay/liferay-faces

protected void doFacesHeaders(RenderRequest renderRequest, RenderResponse renderResponse) {
  logger.trace(
    "doFacesHeaders(RenderRequest, RenderResponse) this=[{0}], renderRequest=[{1}], renderResponse=[{2}]", this,
    renderRequest, renderResponse);
}

代码示例来源:origin: com.liferay.faces/com.liferay.faces.util

@Override
public boolean isBannedSequence(String resourceId) {
  boolean bannedSequence = false;
  if (resourceId != null) {
    for (String sequence : BANNED_SEQUENCES) {
      if (resourceId.contains(sequence)) {
        logger.trace("MATCHED BANNED SEQUENCE resourceId=[{0}] sequence=[{1}]", resourceId, sequence);
        bannedSequence = true;
        break;
      }
    }
  }
  return bannedSequence;
}

代码示例来源:origin: com.liferay.faces/com.liferay.faces.util

@Override
public boolean containsBannedPath(String resourceId) {
  Matcher matcher = BANNED_PATHS_PATTERN.matcher(resourceId);
  boolean matches = matcher.matches();
  if (matches) {
    logger.trace("MATCHED BANNED PATH resourceId=[{0}] matcher=[{1}]", resourceId, matcher);
  }
  return matches;
}

代码示例来源:origin: liferay/liferay-faces

@Override
public boolean containsBannedPath(String resourceId) {
  Matcher matcher = BANNED_PATHS_PATTERN.matcher(resourceId);
  boolean matches = matcher.matches();
  if (matches) {
    logger.trace("MATCHED BANNED PATH resourceId=[{0}] matcher=[{1}]", resourceId, matcher);
  }
  return matches;
}

代码示例来源:origin: com.liferay.faces/liferay-faces-util

@Override
public boolean containsBannedPath(String resourceId) {
  Matcher matcher = BANNED_PATHS_PATTERN.matcher(resourceId);
  boolean matches = matcher.matches();
  if (matches) {
    logger.trace("MATCHED BANNED PATH resourceId=[{0}] matcher=[{1}]", resourceId, matcher);
  }
  return matches;
}

代码示例来源:origin: com.liferay.faces/liferay-faces-bridge-impl

@Override
public PrintWriter getWriter() throws IOException {
  PrintWriter writer = wrappedServletResponse.getWriter();
  if (logger.isTraceEnabled()) {
    logger.trace("getWriter() called by method=[{0}]", Thread.currentThread().getStackTrace()[3].toString());
    logger.trace("getWriter() returnValue=[{0}]", writer);
  }
  return writer;
}

代码示例来源:origin: liferay/liferay-faces

@Override
public OutputStream getPortletOutputStream() throws IOException {
  OutputStream outputStream = wrappedServletResponse.getOutputStream();
  if (logger.isTraceEnabled()) {
    logger.trace("getPortletOutputStream() called by method=[{0}]",
      Thread.currentThread().getStackTrace()[3].toString());
    logger.trace("getPortletOutputStream() returnValue=[{0}]", outputStream);
  }
  return outputStream;
}

代码示例来源:origin: liferay/liferay-faces

@Override
public PrintWriter getWriter() throws IOException {
  PrintWriter writer = wrappedServletResponse.getWriter();
  if (logger.isTraceEnabled()) {
    logger.trace("getWriter() called by method=[{0}]", Thread.currentThread().getStackTrace()[3].toString());
    logger.trace("getWriter() returnValue=[{0}]", writer);
  }
  return writer;
}

代码示例来源:origin: com.liferay.faces/liferay-faces-bridge-impl

@Override
public OutputStream getPortletOutputStream() throws IOException {
  OutputStream outputStream = wrappedServletResponse.getOutputStream();
  if (logger.isTraceEnabled()) {
    logger.trace("getPortletOutputStream() called by method=[{0}]",
      Thread.currentThread().getStackTrace()[3].toString());
    logger.trace("getPortletOutputStream() returnValue=[{0}]", outputStream);
  }
  return outputStream;
}

代码示例来源:origin: com.liferay.faces/liferay-faces-bridge-impl

@Override
public void startCDATA() throws IOException {
  // Set a flag indicating that we're in the CDATA section.
  insideCData = true;
  logger.trace("insideCData=[true]");
  // Ask the superclass method to perform the startCDATA writing, which basically delegates to the Faces
  // implementation writer (or the ICEfaces DOMResponseWriter) in the chain-of-responsibility.
  super.startCDATA();
}

代码示例来源:origin: liferay/liferay-faces

@Override
public void startCDATA() throws IOException {
  // Set a flag indicating that we're in the CDATA section.
  insideCData = true;
  logger.trace("insideCData=[true]");
  // Ask the superclass method to perform the startCDATA writing, which basically delegates to the Faces
  // implementation writer (or the ICEfaces DOMResponseWriter) in the chain-of-responsibility.
  super.startCDATA();
}

代码示例来源:origin: liferay/liferay-faces

@Override
public void endCDATA() throws IOException {
  // Set a flag indicating that we're in the CDATA section.
  insideCData = false;
  logger.trace("insideCData=[false]");
  // Ask the superclass method to perform the endCDATA writing, which basically delegates to the Faces
  // implementation writer (or the ICEfaces DOMResponseWriter) in the chain-of-responsibility.
  super.endCDATA();
}

代码示例来源:origin: com.liferay.faces/liferay-faces-bridge-impl

@Override
public void endCDATA() throws IOException {
  // Set a flag indicating that we're in the CDATA section.
  insideCData = false;
  logger.trace("insideCData=[false]");
  // Ask the superclass method to perform the endCDATA writing, which basically delegates to the Faces
  // implementation writer (or the ICEfaces DOMResponseWriter) in the chain-of-responsibility.
  super.endCDATA();
}

代码示例来源:origin: com.liferay.faces/liferay-faces-bridge-impl

protected void saveJSF2FacesContextAttributes(FacesContext facesContext) {
  Map<Object, Object> currentFacesContextAttributes = facesContext.getAttributes();
  int mapSize = currentFacesContextAttributes.size();
  List<FacesContextAttribute> savedFacesContextAttributes = new ArrayList<FacesContextAttribute>(mapSize);
  Iterator<Map.Entry<Object, Object>> itr = currentFacesContextAttributes.entrySet().iterator();
  while (itr.hasNext()) {
    Map.Entry<Object, Object> mapEntry = itr.next();
    Object name = mapEntry.getKey();
    Object value = mapEntry.getValue();
    logger.trace("Saving FacesContext attribute name=[{0}] value=[{1}]", name, value);
    savedFacesContextAttributes.add(new FacesContextAttribute(name, value));
  }
  setAttribute(BRIDGE_REQ_SCOPE_ATTR_FACES_CONTEXT_ATTRIBUTES, savedFacesContextAttributes);
}

代码示例来源:origin: com.liferay.faces/liferay-faces-bridge-impl

/**
 * This method is called after an attribute is removed from the ServletRequest. One might expect that this is a good
 * time to call any managed bean methods annotated with @BridgePreDestroy, but that actually takes place in the
 * Bridge's {@link RequestAttributeMap#remove(Object)} method. Note that this should only get called for remote WSRP
 * portlets. For more info, see: http://issues.liferay.com/browse/FACES-146
 */
public void attributeRemoved(ServletRequestAttributeEvent servletRequestAttributeEvent) {
  String attributeName = servletRequestAttributeEvent.getName();
  Object attributeValue = servletRequestAttributeEvent.getValue();
  logger.trace("Attribute removed name=[{0}] value=[{1}]", attributeName, attributeValue);
}

代码示例来源:origin: com.liferay.faces/liferay-faces-bridge-impl

/**
 * This method is called after an attribute is replaced in the ServletRequest. One might expect that this is a good
 * time to call any managed bean methods annotated with @BridgePreDestroy, but that actually takes place in the
 * Bridge's {@link RequestAttributeMap#remove(Object)} method. Note that this should only get called for remote WSRP
 * portlets. For more info, see: http://issues.liferay.com/browse/FACES-146
 */
public void attributeReplaced(ServletRequestAttributeEvent servletRequestAttributeEvent) {
  String attributeName = servletRequestAttributeEvent.getName();
  Object attributeValue = servletRequestAttributeEvent.getValue();
  logger.trace("Attribute replaced name=[{0}] value=[{1}]", attributeName, attributeValue);
}

代码示例来源:origin: liferay/liferay-faces

/**
 * This method is called after an attribute is removed from the ServletRequest. One might expect that this is a good
 * time to call any managed bean methods annotated with @BridgePreDestroy, but that actually takes place in the
 * Bridge's {@link RequestAttributeMap#remove(Object)} method. Note that this should only get called for remote WSRP
 * portlets. For more info, see: http://issues.liferay.com/browse/FACES-146
 */
public void attributeRemoved(ServletRequestAttributeEvent servletRequestAttributeEvent) {
  String attributeName = servletRequestAttributeEvent.getName();
  Object attributeValue = servletRequestAttributeEvent.getValue();
  logger.trace("Attribute removed name=[{0}] value=[{1}]", attributeName, attributeValue);
}

代码示例来源:origin: liferay/liferay-faces

/**
 * This method is called after an attribute is replaced in the ServletRequest. One might expect that this is a good
 * time to call any managed bean methods annotated with @BridgePreDestroy, but that actually takes place in the
 * Bridge's {@link RequestAttributeMap#remove(Object)} method. Note that this should only get called for remote WSRP
 * portlets. For more info, see: http://issues.liferay.com/browse/FACES-146
 */
public void attributeReplaced(ServletRequestAttributeEvent servletRequestAttributeEvent) {
  String attributeName = servletRequestAttributeEvent.getName();
  Object attributeValue = servletRequestAttributeEvent.getValue();
  logger.trace("Attribute replaced name=[{0}] value=[{1}]", attributeName, attributeValue);
}

代码示例来源:origin: com.liferay.faces/liferay-faces-bridge-impl

@Override
public void startElement(String name, UIComponent component) throws IOException {
  if ("title".equals(name)) {
    logger.warn(
      "Title removed because multiple <title> elements are invalid and the portlet container controls the <title>.");
    titleElement = true;
  }
  else {
    Element element = createElement(name);
    ElementWriter elementWriter = new ElementWriter(element);
    elementWriterStack.push(elementWriter);
    logger.trace("PUSHED element name=[{0}]", name);
  }
}

相关文章