org.apache.cactus.util.log
aspect LogAspect

java.lang.Object
  |
  +--org.apache.cactus.util.log.LogAspect
Known Advisees:
AbstractAuthentication, AbstractHttpClient, AbstractHttpServletRequestWrapper, AbstractPageContextWrapper, AbstractServletContextWrapper, AbstractTestController, AbstractWebImplicitObjects, AssertUtils, AssertionFailedErrorWrapper, BasicAuthentication, ChainedRuntimeException, Cookie, HttpClientHelper, IoUtil, JUnitVersionHelper, JspImplicitObjects, JspTestRedirector, RequestDispatcherWrapper, ServiceEnumeration, ServletConfigWrapper, ServletExceptionWrapper, ServletImplicitObjects, ServletTestRedirector, ServletURL, ServletUtil, WebRequest, WebResponse, WebTestResultParser

public aspect LogAspect
extends java.lang.Object
issingleton()
dominated by LogManagerAspect

Log every entry and exit of methods.

Version:
$Id: LogAspect.java,v 1.1 2002/03/01 00:43:47 vmassol Exp $
Author:
Vincent Massol

Advice Summary
around()
          Log all entries and exits of static methods that have no return values.
          
around()
          Log all entries and exits of non-static methods that have no return values.
          Affects: AbstractAuthentication(2), AbstractHttpServletRequestWrapper(2), AbstractPageContextWrapper(8), AbstractServletContextWrapper(5), AbstractTestController, AbstractWebImplicitObjects(3), AssertionFailedErrorWrapper(2), BasicAuthentication, ChainedRuntimeException(2), Cookie(7), JspImplicitObjects(2), JspTestRedirector, RequestDispatcherWrapper(2), ServletConfigWrapper(2), ServletExceptionWrapper(2), ServletImplicitObjects, ServletTestRedirector(2), ServletURL, WebRequest(12)
around()
          Log all entries and exits of static methods that have return values.
          Affects: AssertUtils(3), HttpClientHelper(3), IoUtil, JUnitVersionHelper, ServletURL, ServletUtil
around()
          Log all entries and exits of non-static methods that have return values.
          Affects: AbstractHttpClient, AbstractHttpServletRequestWrapper(11), AbstractPageContextWrapper(5), AbstractServletContextWrapper(10), AssertionFailedErrorWrapper, Cookie, HttpClientHelper, ServiceEnumeration, ServletConfigWrapper, ServletExceptionWrapper, WebRequest(6), WebResponse, WebTestResultParser
 
Constructor Summary
LogAspect()
          Log every entry and exit of methods.
 
Method Summary
static LogAspect aspectOf()
           
static boolean hasAspect()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Advice Detail

around #1

Object around()
Log all entries and exits of static methods that have no return values.

around #2

Object around()
Log all entries and exits of non-static methods that have no return values.
Affects:
addCookie(Cookie) in WebRequest.
addCookie(String,String,String) in WebRequest.
addCookie(String,String) in WebRequest.
addHeader(String,String) in WebRequest.
addParameter(String,String,String) in WebRequest.
addParameter(String,String) in WebRequest.
configure(HttpURLConnection) in BasicAuthentication.
doGet(HttpServletRequest,HttpServletResponse) in ServletTestRedirector.
doGet(JspImplicitObjects) in JspTestRedirector.
doPost(HttpServletRequest,HttpServletResponse) in ServletTestRedirector.
forward(ServletRequest,ServletResponse) in RequestDispatcherWrapper.
forward(String) in AbstractPageContextWrapper.
handlePageException(Exception) in AbstractPageContextWrapper.
handleRequest(WebImplicitObjects) in AbstractTestController.
include(ServletRequest,ServletResponse) in RequestDispatcherWrapper.
include(String) in AbstractPageContextWrapper.
initialize(Servlet,ServletRequest,ServletResponse,String,boolean,int,boolean) in AbstractPageContextWrapper.
log(Exception,String) in AbstractServletContextWrapper.
log(String,Throwable) in AbstractServletContextWrapper.
log(String) in AbstractServletContextWrapper.
printStackTrace(PrintStream) in ChainedRuntimeException.
printStackTrace(PrintWriter) in ServletExceptionWrapper.
printStackTrace(PrintStream) in ServletExceptionWrapper.
printStackTrace(PrintWriter) in ChainedRuntimeException.
printStackTrace(PrintStream) in AssertionFailedErrorWrapper.
printStackTrace(PrintWriter) in AssertionFailedErrorWrapper.
removeAttribute(String) in AbstractServletContextWrapper.
removeAttribute(String) in AbstractHttpServletRequestWrapper.
removeAttribute(String) in AbstractPageContextWrapper.
removeAttribute(String,int) in AbstractPageContextWrapper.
saveToRequest(WebRequest) in ServletURL.
setAttribute(String,Object,int) in AbstractPageContextWrapper.
setAttribute(String,Object) in AbstractPageContextWrapper.
setAttribute(String,Object) in AbstractServletContextWrapper.
setAttribute(String,Object) in AbstractHttpServletRequestWrapper.
setAuthentication(AbstractAuthentication) in WebRequest.
setAutomaticSession(boolean) in WebRequest.
setComment(String) in Cookie.
setContentType(String) in WebRequest.
setDomain(String) in Cookie.
setExpiryDate(Date) in Cookie.
setHttpServletRequest(HttpServletRequest) in AbstractWebImplicitObjects.
setHttpServletResponse(HttpServletResponse) in AbstractWebImplicitObjects.
setInitParameter(String,String) in ServletConfigWrapper.
setJspWriter(JspWriter) in JspImplicitObjects.
setName(String) in Cookie.
setName(String) in AbstractAuthentication.
setPageContext(PageContext) in JspImplicitObjects.
setPassword(String) in AbstractAuthentication.
setPath(String) in Cookie.
setRedirectorName(String) in WebRequest.
setSecure(boolean) in Cookie.
setServletConfig(ServletConfig) in ServletImplicitObjects.
setServletContext(ServletContext) in AbstractWebImplicitObjects.
setServletName(String) in ServletConfigWrapper.
setURL(String,String,String,String,String) in WebRequest.
setUserData(InputStream) in WebRequest.
setValue(String) in Cookie.

around #3

Object around()
Log all entries and exits of static methods that have return values.
Affects:
getCookies(HttpURLConnection) in AssertUtils.
getDomain(WebRequest,URLConnection) in HttpClientHelper.
getPath(WebRequest,URLConnection) in HttpClientHelper.
getPort(WebRequest,URLConnection) in HttpClientHelper.
getQueryStringParameter(String,String) in ServletUtil.
getResponseAsString(HttpURLConnection) in AssertUtils.
getResponseAsStringArray(HttpURLConnection) in AssertUtils.
getTestCaseName(TestCase) in JUnitVersionHelper.
getText(InputStream) in IoUtil.
loadFromRequest(HttpServletRequest) in ServletURL.

around #4

Object around()
Log all entries and exits of non-static methods that have return values.
Affects:
connect(WebRequest) in HttpClientHelper.
doTest(WebRequest) in AbstractHttpClient.
equals(String) in ServiceEnumeration.
equals(Object) in Cookie.
findAttribute(String) in AbstractPageContextWrapper.
getAttribute(String,int) in AbstractPageContextWrapper.
getAttribute(String) in AbstractHttpServletRequestWrapper.
getAttribute(String) in AbstractPageContextWrapper.
getAttribute(String) in AbstractServletContextWrapper.
getAttributeNamesInScope(int) in AbstractPageContextWrapper.
getAttributesScope(String) in AbstractPageContextWrapper.
getContext(String) in AbstractServletContextWrapper.
getCookie(String) in WebResponse.
getDateHeader(String) in AbstractHttpServletRequestWrapper.
getHeader(String) in WebRequest.
getHeader(String) in AbstractHttpServletRequestWrapper.
getHeaderValues(String) in WebRequest.
getHeaders(String) in AbstractHttpServletRequestWrapper.
getInitParameter(String) in ServletConfigWrapper.
getInitParameter(String) in AbstractServletContextWrapper.
getIntHeader(String) in AbstractHttpServletRequestWrapper.
getMimeType(String) in AbstractServletContextWrapper.
getNamedDispatcher(String) in AbstractServletContextWrapper.
getParameter(String) in AbstractHttpServletRequestWrapper.
getParameterGet(String) in WebRequest.
getParameterPost(String) in WebRequest.
getParameterValues(String) in AbstractHttpServletRequestWrapper.
getParameterValuesGet(String) in WebRequest.
getParameterValuesPost(String) in WebRequest.
getRealPath(String) in AbstractServletContextWrapper.
getRealPath(String) in AbstractHttpServletRequestWrapper.
getRequestDispatcher(String) in AbstractServletContextWrapper.
getRequestDispatcher(String) in AbstractHttpServletRequestWrapper.
getResource(String) in AbstractServletContextWrapper.
getResourceAsStream(String) in AbstractServletContextWrapper.
getServlet(String) in AbstractServletContextWrapper.
getSession(boolean) in AbstractHttpServletRequestWrapper.
instanceOf(Class) in AssertionFailedErrorWrapper.
instanceOf(Class) in ServletExceptionWrapper.
isUserInRole(String) in AbstractHttpServletRequestWrapper.
parse(String) in WebTestResultParser.
Constructor Detail

LogAspect

public LogAspect()
Log every entry and exit of methods.
Method Detail

aspectOf

public static LogAspect aspectOf()

hasAspect

public static boolean hasAspect()


Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.