本文整理了Java中org.ocpsoft.logging.Logger.debug()
方法的一些代码示例,展示了Logger.debug()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.debug()
方法的具体详情如下:
包路径:org.ocpsoft.logging.Logger
类名称:Logger
方法名:debug
暂无
代码示例来源:origin: org.ocpsoft.rewrite/rewrite-impl
@Override
public Object getInstance(Class<?> type)
{
Object result = null;
try {
result = type.newInstance();
}
catch (Exception e) {
log.debug("Could not create instance of type [" + type.getName() + "] through reflection.", e);
}
return result;
}
代码示例来源:origin: ocpsoft/rewrite
@Override
public Object getInstance(Class<?> type)
{
Object result = null;
try {
result = type.newInstance();
}
catch (Exception e) {
log.debug("Could not create instance of type [" + type.getName() + "] through reflection.", e);
}
return result;
}
代码示例来源:origin: ocpsoft/rewrite
@Override
public Object getInstance(Class<?> type)
{
Object result = null;
try {
result = type.newInstance();
}
catch (Exception e) {
log.debug("Could not create instance of type [" + type.getName() + "] through reflection.", e);
}
return result;
}
代码示例来源:origin: org.ocpsoft.rewrite/rewrite-impl-servlet
@Override
public void redirectTemporary(final String location)
{
log.debug("Temporary Redirect (302) requested: [" + location + "]");
HttpServletResponse response = getResponse();
if (response.isCommitted())
{
throw new IllegalStateException("Response is already committed. Cannot issue redirect.");
}
dispatchResource = encodeRedirectUrl(response, location);
this.flow = ServletRewriteFlow.REDIRECT_TEMPORARY;
}
代码示例来源:origin: ocpsoft/rewrite
/**
* The visitor must be initialized with the handlers to call for specific annotations
*/
public ClassVisitorImpl(List<AnnotationHandler<Annotation>> handlers, Object payload)
{
handlerList = new ArrayList<AnnotationHandler<Annotation>>(handlers);
Collections.sort(handlerList, new WeightedComparator());
this.payload = payload;
if (log.isDebugEnabled())
{
log.debug("Initialized to use {} AnnotationHandlers..", handlers.size());
}
}
代码示例来源:origin: ocpsoft/rewrite
/**
* The visitor must be initialized with the handlers to call for specific annotations
*/
public ClassVisitorImpl(List<AnnotationHandler<Annotation>> handlers, Object payload)
{
handlerList = new ArrayList<AnnotationHandler<Annotation>>(handlers);
Collections.sort(handlerList, new WeightedComparator());
this.payload = payload;
if (log.isDebugEnabled())
{
log.debug("Initialized to use {} AnnotationHandlers..", handlers.size());
}
}
代码示例来源:origin: ocpsoft/rewrite
@Override
public void redirectTemporary(final String location)
{
log.debug("Temporary Redirect (302) requested: [" + location + "]");
HttpServletResponse response = getResponse();
if (response.isCommitted())
{
throw new IllegalStateException("Response is already committed. Cannot issue redirect.");
}
dispatchResource = encodeRedirectUrl(response, location);
this.flow = ServletRewriteFlow.REDIRECT_TEMPORARY;
}
代码示例来源:origin: ocpsoft/rewrite
@Override
public void redirectPermanent(final String location)
{
log.debug("Permanent Redirect (301) requested: [" + location + "]");
HttpServletResponse response = getResponse();
if (response.isCommitted())
{
throw new IllegalStateException("Response is already committed. Cannot issue redirect.");
}
dispatchResource = encodeRedirectUrl(response, location);
this.flow = ServletRewriteFlow.REDIRECT_PERMANENT;
}
代码示例来源:origin: ocpsoft/rewrite
@Override
public void redirectTemporary(final String location)
{
log.debug("Temporary Redirect (302) requested: [" + location + "]");
HttpServletResponse response = getResponse();
if (response.isCommitted())
{
throw new IllegalStateException("Response is already committed. Cannot issue redirect.");
}
dispatchResource = encodeRedirectUrl(response, location);
this.flow = ServletRewriteFlow.REDIRECT_TEMPORARY;
}
代码示例来源:origin: ocpsoft/rewrite
@Override
public <T> void enrich(final T service)
{
SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(service);
if (log.isDebugEnabled())
log.debug("Enriched instance of service [" + service.getClass().getName() + "]");
}
代码示例来源:origin: org.ocpsoft.rewrite/rewrite-impl-servlet
@Override
public void redirectPermanent(final String location)
{
log.debug("Permanent Redirect (301) requested: [" + location + "]");
HttpServletResponse response = getResponse();
if (response.isCommitted())
{
throw new IllegalStateException("Response is already committed. Cannot issue redirect.");
}
dispatchResource = encodeRedirectUrl(response, location);
this.flow = ServletRewriteFlow.REDIRECT_PERMANENT;
}
代码示例来源:origin: org.ocpsoft.rewrite/rewrite-integration-spring
@Override
public <T> void enrich(final T service)
{
SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(service);
if (log.isDebugEnabled())
log.debug("Enriched instance of service [" + service.getClass().getName() + "]");
}
代码示例来源:origin: ocpsoft/rewrite
@Override
public void redirectPermanent(final String location)
{
log.debug("Permanent Redirect (301) requested: [" + location + "]");
HttpServletResponse response = getResponse();
if (response.isCommitted())
{
throw new IllegalStateException("Response is already committed. Cannot issue redirect.");
}
dispatchResource = encodeRedirectUrl(response, location);
this.flow = ServletRewriteFlow.REDIRECT_PERMANENT;
}
代码示例来源:origin: org.ocpsoft.rewrite/rewrite-integration-faces
public void handleNavigation(final PhaseEvent event)
{
FacesContext facesContext = event.getFacesContext();
HttpServletRequest request = ((HttpServletRequest) facesContext.getExternalContext().getRequest());
String navigationCase = (String) request.getAttribute(NavigatingInvocationResultHandler.QUEUED_NAVIGATION);
if (navigationCase != null)
{
request.setAttribute(NavigatingInvocationResultHandler.QUEUED_NAVIGATION, null);
NavigationHandler navigationHandler = facesContext.getApplication().getNavigationHandler();
log.debug("Passing queued " + PhaseAction.class.getName() + " result [" + navigationCase
+ "] to NavigationHandler.handleNavigation()");
navigationHandler.handleNavigation(facesContext, "", navigationCase);
}
}
代码示例来源:origin: ocpsoft/rewrite
public void handleNavigation(final PhaseEvent event)
{
FacesContext facesContext = event.getFacesContext();
HttpServletRequest request = ((HttpServletRequest) facesContext.getExternalContext().getRequest());
String navigationCase = (String) request.getAttribute(NavigatingInvocationResultHandler.QUEUED_NAVIGATION);
if (navigationCase != null)
{
request.setAttribute(NavigatingInvocationResultHandler.QUEUED_NAVIGATION, null);
NavigationHandler navigationHandler = facesContext.getApplication().getNavigationHandler();
log.debug("Passing queued " + PhaseAction.class.getName() + " result [" + navigationCase
+ "] to NavigationHandler.handleNavigation()");
navigationHandler.handleNavigation(facesContext, "", navigationCase);
}
}
代码示例来源:origin: ocpsoft/rewrite
@Override
@SuppressWarnings("unchecked")
public <T> void enrich(final T service)
{
if (service != null)
{
BeanManager manager = getBeanManager();
CreationalContext<Object> context = manager.createCreationalContext(null);
InjectionTarget<Object> injectionTarget = (InjectionTarget<Object>) manager
.createInjectionTarget(manager.createAnnotatedType(service.getClass()));
injectionTarget.inject(service, context);
if ((context != null) && log.isDebugEnabled())
{
log.debug("Enriched non-contextual instance of service [" + service.getClass().getName() + "]");
}
}
}
代码示例来源:origin: org.ocpsoft.rewrite/rewrite-config-servlet
@Override
public void performHttp(HttpServletRewrite event, EvaluationContext context)
{
InputStream stream = null;
try {
File file = new File(target.build(event, context, Transpositions.encodePath()));
stream = new BufferedInputStream(new FileInputStream(file));
log.debug("Streaming from file [" + file + "] to response.");
Response.write(stream).perform(event, context);
}
catch (Exception e) {
throw new RewriteException("Error streaming file.", e);
}
finally
{
if (stream != null)
try {
stream.close();
}
catch (IOException e) {
throw new RewriteException("Error closing stream.", e);
}
}
}
代码示例来源:origin: ocpsoft/rewrite
@Override
public void performHttp(HttpServletRewrite event, EvaluationContext context)
{
InputStream stream = null;
try {
File file = new File(target.build(event, context, Transpositions.encodePath()));
stream = new BufferedInputStream(new FileInputStream(file));
log.debug("Streaming from file [" + file + "] to response.");
Response.write(stream).perform(event, context);
}
catch (Exception e) {
throw new RewriteException("Error streaming file.", e);
}
finally
{
if (stream != null)
try {
stream.close();
}
catch (IOException e) {
throw new RewriteException("Error closing stream.", e);
}
}
}
代码示例来源:origin: ocpsoft/rewrite
@Override
public void performHttp(HttpServletRewrite event, EvaluationContext context)
{
InputStream stream = null;
try {
File file = new File(target.build(event, context, Transpositions.encodePath()));
stream = new BufferedInputStream(new FileInputStream(file));
log.debug("Streaming from file [" + file + "] to response.");
Response.write(stream).perform(event, context);
}
catch (Exception e) {
throw new RewriteException("Error streaming file.", e);
}
finally
{
if (stream != null)
try {
stream.close();
}
catch (IOException e) {
throw new RewriteException("Error closing stream.", e);
}
}
}
代码示例来源:origin: ocpsoft/rewrite
private void checkConfLocal(final Conf conf)
{
if (conf.isOk() && conf.isEngineEnabled()) {
urlRewriter = new UrlRewriter(conf);
log.debug("Tuckey UrlRewriteFilter configuration loaded (Status: OK)");
}
else {
if (!conf.isOk()) {
log.error("Tuckey UrlRewriteFilter configuration failed (Status: ERROR)");
}
if (!conf.isEngineEnabled()) {
log.warn("Tuckey UrlRewriteFilter engine explicitly disabled in configuration");
}
if (urlRewriter != null) {
log.debug("Tuckey UrlRewriteFilter configuration unloaded");
urlRewriter = null;
}
}
}
内容来源于网络,如有侵权,请联系作者删除!