package com.airlock.iam.application.webserver.infrastructure.valve;

import com.airlock.iam.application.parameters.domain.model.LogFormat;
import java.io.CharArrayWriter;
import org.apache.catalina.LifecycleException;
import org.apache.catalina.LifecycleState;

public class ConsoleAccessLogValve extends FormattingAccessLogValve {
   private static final String NOT_IMPLEMENTED = "Console Access Log Valve should never call this method.";

   public ConsoleAccessLogValve(LogFormat formatterType) {
      super(formatterType);
   }

   public void log(CharArrayWriter message) {
      System.out.println(message.toString());
   }

   public void backgroundProcess() {
   }

   protected synchronized void startInternal() throws LifecycleException {
      this.setState(LifecycleState.STARTING);
   }

   protected synchronized void stopInternal() throws LifecycleException {
      this.setState(LifecycleState.STOPPING);
   }

   public int getMaxDays() {
      throw new AssertionError("Console Access Log Valve should never call this method.");
   }

   public void setMaxDays(int maxDays) {
      throw new AssertionError("Console Access Log Valve should never call this method.");
   }

   public String getDirectory() {
      throw new AssertionError("Console Access Log Valve should never call this method.");
   }

   public void setDirectory(String directory) {
      throw new AssertionError("Console Access Log Valve should never call this method.");
   }

   public boolean isCheckExists() {
      throw new AssertionError("Console Access Log Valve should never call this method.");
   }

   public void setCheckExists(boolean checkExists) {
      throw new AssertionError("Console Access Log Valve should never call this method.");
   }

   public String getPrefix() {
      throw new AssertionError("Console Access Log Valve should never call this method.");
   }

   public void setPrefix(String prefix) {
      throw new AssertionError("Console Access Log Valve should never call this method.");
   }

   public boolean isRotatable() {
      throw new AssertionError("Console Access Log Valve should never call this method.");
   }

   public void setRotatable(boolean rotatable) {
      throw new AssertionError("Console Access Log Valve should never call this method.");
   }

   public boolean isRenameOnRotate() {
      throw new AssertionError("Console Access Log Valve should never call this method.");
   }

   public void setRenameOnRotate(boolean renameOnRotate) {
      throw new AssertionError("Console Access Log Valve should never call this method.");
   }

   public boolean isBuffered() {
      throw new AssertionError("Console Access Log Valve should never call this method.");
   }

   public void setBuffered(boolean buffered) {
      throw new AssertionError("Console Access Log Valve should never call this method.");
   }

   public String getSuffix() {
      throw new AssertionError("Console Access Log Valve should never call this method.");
   }

   public void setSuffix(String suffix) {
      throw new AssertionError("Console Access Log Valve should never call this method.");
   }

   public String getFileDateFormat() {
      throw new AssertionError("Console Access Log Valve should never call this method.");
   }

   public void setFileDateFormat(String fileDateFormat) {
      throw new AssertionError("Console Access Log Valve should never call this method.");
   }

   public String getEncoding() {
      throw new AssertionError("Console Access Log Valve should never call this method.");
   }

   public void setEncoding(String encoding) {
      throw new AssertionError("Console Access Log Valve should never call this method.");
   }

   public void rotate() {
      throw new AssertionError("Console Access Log Valve should never call this method.");
   }

   public boolean rotate(String newFileName) {
      throw new AssertionError("Console Access Log Valve should never call this method.");
   }

   public void open() {
      throw new AssertionError("Console Access Log Valve should never call this method.");
   }
}
