本文整理了Java中com.liferay.faces.util.logging.Logger.debug()
方法的一些代码示例,展示了Logger.debug()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.debug()
方法的具体详情如下:
包路径:com.liferay.faces.util.logging.Logger
类名称:Logger
方法名:debug
暂无
代码示例来源:origin: com.liferay.faces/com.liferay.faces.util
@Override
public ResponseWriter cloneWithWriter(Writer writer) {
logger.debug(
"Returning null from cloneWithWriter({0}) since BufferedScriptResponseWriter only supports writing scripts.",
writer);
return null;
}
代码示例来源:origin: com.liferay.faces/com.liferay.faces.util
@Override
public void endDocument() throws IOException {
logger.debug(
"Suppressing the output of endDocument() since BufferedScriptResponseWriter only supports writing scripts.");
}
代码示例来源:origin: com.liferay.faces/com.liferay.faces.util
@Override
public String getContentType() {
logger.debug(
"Returning null from getContentType() since BufferedScriptResponseWriter only supports writing scripts.");
return null;
}
代码示例来源:origin: com.liferay.faces/com.liferay.faces.util
@Override
public String getCharacterEncoding() {
logger.debug(
"Returning null from getCharacterEncoding() since BufferedScriptResponseWriter only supports writing scripts.");
return null;
}
代码示例来源:origin: com.liferay.faces/com.liferay.faces.util
@Override
public void writeAttribute(String name, Object value, String property) throws IOException {
logger.debug(
"Suppressing the output of writeAttribute({0}, {1}, {2}) since BufferedScriptResponseWriter only supports writing scripts.",
name, value, property);
}
代码示例来源:origin: com.liferay.faces/com.liferay.faces.util
@Override
public void startElement(String name, UIComponent component) throws IOException {
logger.debug(
"Suppressing the output of startElement({0}, {1}) since BufferedScriptResponseWriter only supports writing scripts.",
name, component);
}
代码示例来源:origin: com.liferay.faces/com.liferay.faces.util
@Override
public void endElement(String name) throws IOException {
logger.debug(
"Suppressing the output of endElement({0}, {1}) since BufferedScriptResponseWriter only supports writing scripts.",
name);
}
代码示例来源:origin: com.liferay.faces/liferay-faces-bridge-impl
@Override
protected void addResourceToHeadSection(Element element, String nodeName) throws IOException {
// NOTE: The Portlet 2.0 Javadocs for the addProperty method indicate that if the key already exists,
// then the element will be added to any existing elements under that key name. There is a risk that
// multiple portlet instances on the same portal page could cause multiple <script /> elements to be
// added to the <head>...</head> section of the rendered portal page. See:
// http://portals.apache.org/pluto/portlet-2.0-apidocs/javax/portlet/PortletResponse.html#addProperty(java.lang.String,
// org.w3c.dom.Element)
portletResponse.addProperty(MimeResponse.MARKUP_HEAD_ELEMENT, element);
logger.debug(ADDED_RESOURCE_TO_HEAD, "portal", nodeName);
}
}
代码示例来源:origin: com.liferay.faces/liferay-faces-bridge-impl
protected ResourceURL createPartialActionURL(String fromURL) throws MalformedURLException {
logger.debug("createPartialActionURL fromURL=[" + fromURL + "]");
return createResourceURL(fromURL);
}
代码示例来源:origin: liferay/liferay-faces
@Override
public UIViewRoot restoreView(FacesContext facesContext, String viewId) {
logger.debug("Restoring view for viewId=[{0}]", viewId);
return super.restoreView(facesContext, viewId);
}
代码示例来源:origin: com.liferay.faces/liferay-faces-bridge-impl
@Override
public UIViewRoot restoreView(FacesContext facesContext, String viewId) {
logger.debug("Restoring view for viewId=[{0}]", viewId);
return super.restoreView(facesContext, viewId);
}
代码示例来源:origin: liferay/liferay-faces
protected PortletURL createActionURL(String fromURL) throws MalformedURLException {
try {
logger.debug("createActionURL fromURL=[" + fromURL + "]");
BridgeContext bridgeContext = BridgeContext.getCurrentInstance();
MimeResponse mimeResponse = (MimeResponse) bridgeContext.getPortletResponse();
PortletURL actionURL = mimeResponse.createActionURL();
copyParameters(fromURL, actionURL);
return actionURL;
}
catch (ClassCastException e) {
throw new MalformedURLException(e.getMessage());
}
}
代码示例来源:origin: com.liferay.faces/liferay-faces-bridge-impl
@Override
public void buildView(FacesContext facesContext, UIViewRoot uiViewRoot) throws IOException {
// Set a flag on the BridgeContext indicating that JSP AFTER_VIEW_CONTENT processing has been activated. The
// flag is referenced by {@link ExternalContextImpl#getRequest()} and {@link ExternalContextImpl#getResponse()}
// and is unset by {@link ExternalContextImpl#dispatch(String)}.
BridgeContext bridgeContext = BridgeContext.getCurrentInstance();
bridgeContext.setProcessingAfterViewContent(true);
logger.debug("Activated JSP AFTER_VIEW_CONTENT feature");
// Have the wrapped VDL build the view.
super.buildView(facesContext, uiViewRoot);
}
代码示例来源:origin: com.liferay.faces/liferay-faces-bridge-impl
public void afterPhase(PhaseEvent phaseEvent) {
// This method just does some logging. It's useful to the developer to determine if a navigation-rule
// fired, causing new JSF view to be restored after the INVOKE_APPLICATION phase finished.
if (logger.isDebugEnabled() && (phaseEvent.getPhaseId() == PhaseId.INVOKE_APPLICATION)) {
FacesContext facesContext = phaseEvent.getFacesContext();
String viewId = facesContext.getViewRoot().getViewId();
logger.debug("After INVOKE_APPLICATION: viewId=[{0}]", viewId);
}
}
代码示例来源:origin: liferay/liferay-faces
@Override
public void buildView(FacesContext facesContext, UIViewRoot uiViewRoot) throws IOException {
// Set a flag on the BridgeContext indicating that JSP AFTER_VIEW_CONTENT processing has been activated. The
// flag is referenced by {@link ExternalContextImpl#getRequest()} and {@link ExternalContextImpl#getResponse()}
// and is unset by {@link ExternalContextImpl#dispatch(String)}.
BridgeContext bridgeContext = BridgeContext.getCurrentInstance();
bridgeContext.setProcessingAfterViewContent(true);
logger.debug("Activated JSP AFTER_VIEW_CONTENT feature");
// Have the wrapped VDL build the view.
super.buildView(facesContext, uiViewRoot);
}
代码示例来源:origin: com.liferay.faces/liferay-faces-util
public void beforePhase(PhaseEvent phaseEvent) {
if (logger.isDebugEnabled()) {
PhaseId phaseId = phaseEvent.getPhaseId();
String viewId = null;
UIViewRoot uiViewRoot = phaseEvent.getFacesContext().getViewRoot();
if (uiViewRoot != null) {
viewId = uiViewRoot.getViewId();
}
logger.debug("BEFORE phaseId=[{0}] viewId=[{1}]", phaseId.toString(), viewId);
}
}
代码示例来源:origin: com.liferay.faces/com.liferay.faces.util
public void beforePhase(PhaseEvent phaseEvent) {
if (logger.isDebugEnabled()) {
PhaseId phaseId = phaseEvent.getPhaseId();
String viewId = null;
UIViewRoot uiViewRoot = phaseEvent.getFacesContext().getViewRoot();
if (uiViewRoot != null) {
viewId = uiViewRoot.getViewId();
}
logger.debug("BEFORE phaseId=[{0}] viewId=[{1}]", phaseId.toString(), viewId);
}
}
代码示例来源:origin: com.liferay.faces/com.liferay.faces.util
public void afterPhase(PhaseEvent phaseEvent) {
if (logger.isDebugEnabled()) {
PhaseId phaseId = phaseEvent.getPhaseId();
String viewId = null;
UIViewRoot uiViewRoot = phaseEvent.getFacesContext().getViewRoot();
if (uiViewRoot != null) {
viewId = uiViewRoot.getViewId();
}
logger.debug("AFTER phaseId=[{0}] viewId=[{1}]", phaseId.toString(), viewId);
}
}
代码示例来源:origin: com.liferay.faces/liferay-faces-bridge-impl
/**
* The purpose of safePeek() is to prevent an EmptyStackException from being thrown due to a JSF component renderer
* not playing by the rules, whereby startElement() should be called first before write().
*/
public synchronized ElementWriter safePeek() {
if (isEmpty()) {
logger.debug("Stack was empty so created blank element", (Object[]) null);
push(new ElementWriter(new ElementBlankImpl()));
}
return peek();
}
代码示例来源:origin: liferay/liferay-faces
/**
* The purpose of safePeek() is to prevent an EmptyStackException from being thrown due to a JSF component renderer
* not playing by the rules, whereby startElement() should be called first before write().
*/
public synchronized ElementWriter safePeek() {
if (isEmpty()) {
logger.debug("Stack was empty so created blank element", (Object[]) null);
push(new ElementWriter(new ElementBlankImpl()));
}
return peek();
}
内容来源于网络,如有侵权,请联系作者删除!