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

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

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

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

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

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

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

  1. @Override
  2. public boolean isBannedSequence(String resourceId) {
  3. boolean bannedSequence = false;
  4. if (resourceId != null) {
  5. for (String sequence : BANNED_SEQUENCES) {
  6. if (resourceId.contains(sequence)) {
  7. logger.trace("MATCHED BANNED SEQUENCE resourceId=[{0}] sequence=[{1}]", resourceId, sequence);
  8. bannedSequence = true;
  9. break;
  10. }
  11. }
  12. }
  13. return bannedSequence;
  14. }

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

  1. @Override
  2. public boolean containsBannedPath(String resourceId) {
  3. Matcher matcher = BANNED_PATHS_PATTERN.matcher(resourceId);
  4. boolean matches = matcher.matches();
  5. if (matches) {
  6. logger.trace("MATCHED BANNED PATH resourceId=[{0}] matcher=[{1}]", resourceId, matcher);
  7. }
  8. return matches;
  9. }

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

  1. @Override
  2. public boolean containsBannedPath(String resourceId) {
  3. Matcher matcher = BANNED_PATHS_PATTERN.matcher(resourceId);
  4. boolean matches = matcher.matches();
  5. if (matches) {
  6. logger.trace("MATCHED BANNED PATH resourceId=[{0}] matcher=[{1}]", resourceId, matcher);
  7. }
  8. return matches;
  9. }

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

  1. @Override
  2. public boolean containsBannedPath(String resourceId) {
  3. Matcher matcher = BANNED_PATHS_PATTERN.matcher(resourceId);
  4. boolean matches = matcher.matches();
  5. if (matches) {
  6. logger.trace("MATCHED BANNED PATH resourceId=[{0}] matcher=[{1}]", resourceId, matcher);
  7. }
  8. return matches;
  9. }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  1. @Override
  2. public void startElement(String name, UIComponent component) throws IOException {
  3. if ("title".equals(name)) {
  4. logger.warn(
  5. "Title removed because multiple <title> elements are invalid and the portlet container controls the <title>.");
  6. titleElement = true;
  7. }
  8. else {
  9. Element element = createElement(name);
  10. ElementWriter elementWriter = new ElementWriter(element);
  11. elementWriterStack.push(elementWriter);
  12. logger.trace("PUSHED element name=[{0}]", name);
  13. }
  14. }

相关文章