package com.sun.enterprise.web.accesslog;
Access log formatter using the SJSAS format.
message = "Illegal access log pattern [{0}], is not a valid nickname and does not contain any ''%''",
cause = "The pattern is either null or does not contain '%'",
action = "Check the pattern for validity")
message = "Missing end delimiter in access log pattern: {0}",
cause = "An end delimiter ismissing in the access log pattern",
action = "Check the pattern for validity")
message = "Invalid component: {0} in access log pattern: {1}",
cause = "Access log pattern containds invalid component",
action = "Check the pattern for validity")
List of access log pattern components
Constructor.
- Parameters:
pattern
The access log patterncontainer
The container associated with the access log valve
Appends an access log entry line, with info obtained from the given
request and response objects, to the given CharBuffer.
- Parameters:
request
The request object from which to obtain access log inforesponse
The response object from which to obtain access log infocharBuffer
The CharBuffer to which to append access log info
boolean errorInPattern = false;
if (pattern == null || pattern.indexOf('%') < 0) {
while ((index = pattern.indexOf('%', from)) >= 0) {
end = pattern.indexOf('%', index+1);
new Object[] { component, pattern });
if (attributeName == null) {
if (attributeName == null) {
cb.put("NULL-SESSION-ATTRIBUTE-" +
value = "NULL-CLIENT-NAME";
value = "NULL-CLIENT-DNS";
String timeTaken = "NULL-TIME-TAKEN";
if (startTimeObj != null) {
timeTaken = String.valueOf(endTime - startTime);
referer = "NULL-REFERER";
accept = "NULL-HEADER-ACCEPT";
auth = "NULL-HEADER-AUTHORIZATION";
date = "NULL-HEADER-DATE";
if (ifModSince == null) {
ifModSince = "NULL-HEADER-IF-MODIFIED-SINCE";
if (headerName == null) {
if (headerName == null) {
if (headerName == null) {
if (headerName == null) {
String cookie = "NULL-COOKIE";
if (cookies != null && cookies.length > 0) {
if (cookies != null && cookies.length > 0) {
for (int i=0; i<cookies.length; i++) {
if (i<cookies.length-1) {
String cookieValue = "NULL-COOKIE-VALUE";
if (cookies != null && cookies.length > 0) {
if (cookieName == null) {
if (cookies != null && cookies.length > 0) {
for (Cookie cookie : cookies) {
if (cookieValue == null) {
if (cookieName == null) {
if (cookies != null && cookies.length > 0) {
for (int i=0; i<cookies.length; i++) {
method = "NULL-HTTP-METHOD";
protocol = "NULL-HTTP-PROTOCOL";
String vsId = "NULL-VIRTUAL-SERVER";