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

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

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

Logger.debug介绍

暂无

代码示例

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

  1. @Override
  2. public ResponseWriter cloneWithWriter(Writer writer) {
  3. logger.debug(
  4. "Returning null from cloneWithWriter({0}) since BufferedScriptResponseWriter only supports writing scripts.",
  5. writer);
  6. return null;
  7. }

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

  1. @Override
  2. public void endDocument() throws IOException {
  3. logger.debug(
  4. "Suppressing the output of endDocument() since BufferedScriptResponseWriter only supports writing scripts.");
  5. }

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

  1. @Override
  2. public String getContentType() {
  3. logger.debug(
  4. "Returning null from getContentType() since BufferedScriptResponseWriter only supports writing scripts.");
  5. return null;
  6. }

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

  1. @Override
  2. public String getCharacterEncoding() {
  3. logger.debug(
  4. "Returning null from getCharacterEncoding() since BufferedScriptResponseWriter only supports writing scripts.");
  5. return null;
  6. }

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

  1. @Override
  2. public void writeAttribute(String name, Object value, String property) throws IOException {
  3. logger.debug(
  4. "Suppressing the output of writeAttribute({0}, {1}, {2}) since BufferedScriptResponseWriter only supports writing scripts.",
  5. name, value, property);
  6. }

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

  1. @Override
  2. public void startElement(String name, UIComponent component) throws IOException {
  3. logger.debug(
  4. "Suppressing the output of startElement({0}, {1}) since BufferedScriptResponseWriter only supports writing scripts.",
  5. name, component);
  6. }

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

  1. @Override
  2. public void endElement(String name) throws IOException {
  3. logger.debug(
  4. "Suppressing the output of endElement({0}, {1}) since BufferedScriptResponseWriter only supports writing scripts.",
  5. name);
  6. }

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

  1. @Override
  2. protected void addResourceToHeadSection(Element element, String nodeName) throws IOException {
  3. // NOTE: The Portlet 2.0 Javadocs for the addProperty method indicate that if the key already exists,
  4. // then the element will be added to any existing elements under that key name. There is a risk that
  5. // multiple portlet instances on the same portal page could cause multiple <script /> elements to be
  6. // added to the <head>...</head> section of the rendered portal page. See:
  7. // http://portals.apache.org/pluto/portlet-2.0-apidocs/javax/portlet/PortletResponse.html#addProperty(java.lang.String,
  8. // org.w3c.dom.Element)
  9. portletResponse.addProperty(MimeResponse.MARKUP_HEAD_ELEMENT, element);
  10. logger.debug(ADDED_RESOURCE_TO_HEAD, "portal", nodeName);
  11. }
  12. }

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

  1. protected ResourceURL createPartialActionURL(String fromURL) throws MalformedURLException {
  2. logger.debug("createPartialActionURL fromURL=[" + fromURL + "]");
  3. return createResourceURL(fromURL);
  4. }

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

  1. @Override
  2. public UIViewRoot restoreView(FacesContext facesContext, String viewId) {
  3. logger.debug("Restoring view for viewId=[{0}]", viewId);
  4. return super.restoreView(facesContext, viewId);
  5. }

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

  1. @Override
  2. public UIViewRoot restoreView(FacesContext facesContext, String viewId) {
  3. logger.debug("Restoring view for viewId=[{0}]", viewId);
  4. return super.restoreView(facesContext, viewId);
  5. }

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

  1. protected PortletURL createActionURL(String fromURL) throws MalformedURLException {
  2. try {
  3. logger.debug("createActionURL fromURL=[" + fromURL + "]");
  4. BridgeContext bridgeContext = BridgeContext.getCurrentInstance();
  5. MimeResponse mimeResponse = (MimeResponse) bridgeContext.getPortletResponse();
  6. PortletURL actionURL = mimeResponse.createActionURL();
  7. copyParameters(fromURL, actionURL);
  8. return actionURL;
  9. }
  10. catch (ClassCastException e) {
  11. throw new MalformedURLException(e.getMessage());
  12. }
  13. }

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

  1. @Override
  2. public void buildView(FacesContext facesContext, UIViewRoot uiViewRoot) throws IOException {
  3. // Set a flag on the BridgeContext indicating that JSP AFTER_VIEW_CONTENT processing has been activated. The
  4. // flag is referenced by {@link ExternalContextImpl#getRequest()} and {@link ExternalContextImpl#getResponse()}
  5. // and is unset by {@link ExternalContextImpl#dispatch(String)}.
  6. BridgeContext bridgeContext = BridgeContext.getCurrentInstance();
  7. bridgeContext.setProcessingAfterViewContent(true);
  8. logger.debug("Activated JSP AFTER_VIEW_CONTENT feature");
  9. // Have the wrapped VDL build the view.
  10. super.buildView(facesContext, uiViewRoot);
  11. }

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

  1. public void afterPhase(PhaseEvent phaseEvent) {
  2. // This method just does some logging. It's useful to the developer to determine if a navigation-rule
  3. // fired, causing new JSF view to be restored after the INVOKE_APPLICATION phase finished.
  4. if (logger.isDebugEnabled() && (phaseEvent.getPhaseId() == PhaseId.INVOKE_APPLICATION)) {
  5. FacesContext facesContext = phaseEvent.getFacesContext();
  6. String viewId = facesContext.getViewRoot().getViewId();
  7. logger.debug("After INVOKE_APPLICATION: viewId=[{0}]", viewId);
  8. }
  9. }

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

  1. @Override
  2. public void buildView(FacesContext facesContext, UIViewRoot uiViewRoot) throws IOException {
  3. // Set a flag on the BridgeContext indicating that JSP AFTER_VIEW_CONTENT processing has been activated. The
  4. // flag is referenced by {@link ExternalContextImpl#getRequest()} and {@link ExternalContextImpl#getResponse()}
  5. // and is unset by {@link ExternalContextImpl#dispatch(String)}.
  6. BridgeContext bridgeContext = BridgeContext.getCurrentInstance();
  7. bridgeContext.setProcessingAfterViewContent(true);
  8. logger.debug("Activated JSP AFTER_VIEW_CONTENT feature");
  9. // Have the wrapped VDL build the view.
  10. super.buildView(facesContext, uiViewRoot);
  11. }

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

  1. public void beforePhase(PhaseEvent phaseEvent) {
  2. if (logger.isDebugEnabled()) {
  3. PhaseId phaseId = phaseEvent.getPhaseId();
  4. String viewId = null;
  5. UIViewRoot uiViewRoot = phaseEvent.getFacesContext().getViewRoot();
  6. if (uiViewRoot != null) {
  7. viewId = uiViewRoot.getViewId();
  8. }
  9. logger.debug("BEFORE phaseId=[{0}] viewId=[{1}]", phaseId.toString(), viewId);
  10. }
  11. }

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

  1. public void beforePhase(PhaseEvent phaseEvent) {
  2. if (logger.isDebugEnabled()) {
  3. PhaseId phaseId = phaseEvent.getPhaseId();
  4. String viewId = null;
  5. UIViewRoot uiViewRoot = phaseEvent.getFacesContext().getViewRoot();
  6. if (uiViewRoot != null) {
  7. viewId = uiViewRoot.getViewId();
  8. }
  9. logger.debug("BEFORE phaseId=[{0}] viewId=[{1}]", phaseId.toString(), viewId);
  10. }
  11. }

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

  1. public void afterPhase(PhaseEvent phaseEvent) {
  2. if (logger.isDebugEnabled()) {
  3. PhaseId phaseId = phaseEvent.getPhaseId();
  4. String viewId = null;
  5. UIViewRoot uiViewRoot = phaseEvent.getFacesContext().getViewRoot();
  6. if (uiViewRoot != null) {
  7. viewId = uiViewRoot.getViewId();
  8. }
  9. logger.debug("AFTER phaseId=[{0}] viewId=[{1}]", phaseId.toString(), viewId);
  10. }
  11. }

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

  1. /**
  2. * The purpose of safePeek() is to prevent an EmptyStackException from being thrown due to a JSF component renderer
  3. * not playing by the rules, whereby startElement() should be called first before write().
  4. */
  5. public synchronized ElementWriter safePeek() {
  6. if (isEmpty()) {
  7. logger.debug("Stack was empty so created blank element", (Object[]) null);
  8. push(new ElementWriter(new ElementBlankImpl()));
  9. }
  10. return peek();
  11. }

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

  1. /**
  2. * The purpose of safePeek() is to prevent an EmptyStackException from being thrown due to a JSF component renderer
  3. * not playing by the rules, whereby startElement() should be called first before write().
  4. */
  5. public synchronized ElementWriter safePeek() {
  6. if (isEmpty()) {
  7. logger.debug("Stack was empty so created blank element", (Object[]) null);
  8. push(new ElementWriter(new ElementBlankImpl()));
  9. }
  10. return peek();
  11. }

相关文章