001 /*
002 * Copyright 2009-2015 UnboundID Corp.
003 * All Rights Reserved.
004 */
005 /*
006 * Copyright (C) 2015 UnboundID Corp.
007 *
008 * This program is free software; you can redistribute it and/or modify
009 * it under the terms of the GNU General Public License (GPLv2 only)
010 * or the terms of the GNU Lesser General Public License (LGPLv2.1 only)
011 * as published by the Free Software Foundation.
012 *
013 * This program is distributed in the hope that it will be useful,
014 * but WITHOUT ANY WARRANTY; without even the implied warranty of
015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
016 * GNU General Public License for more details.
017 *
018 * You should have received a copy of the GNU General Public License
019 * along with this program; if not, see <http://www.gnu.org/licenses>.
020 */
021 package com.unboundid.ldap.sdk.unboundidds.logs;
022
023
024
025 import com.unboundid.util.NotMutable;
026 import com.unboundid.util.ThreadSafety;
027 import com.unboundid.util.ThreadSafetyLevel;
028
029
030
031 /**
032 * <BLOCKQUOTE>
033 * <B>NOTE:</B> This class is part of the Commercial Edition of the UnboundID
034 * LDAP SDK for Java. It is not available for use in applications that
035 * include only the Standard Edition of the LDAP SDK, and is not supported for
036 * use in conjunction with non-UnboundID products.
037 * </BLOCKQUOTE>
038 * This class provides a data structure that holds information about a log
039 * message that may appear in the Directory Server access log about an unbind
040 * request received from a client.
041 */
042 @NotMutable()
043 @ThreadSafety(level=ThreadSafetyLevel.COMPLETELY_THREADSAFE)
044 public final class UnbindRequestAccessLogMessage
045 extends OperationRequestAccessLogMessage
046 {
047 /**
048 * The serial version UID for this serializable class.
049 */
050 private static final long serialVersionUID = 837856533259958468L;
051
052
053
054 /**
055 * Creates a new unbind request access log message from the provided message
056 * string.
057 *
058 * @param s The string to be parsed as an unbind request access log
059 * message.
060 *
061 * @throws LogException If the provided string cannot be parsed as a valid
062 * log message.
063 */
064 public UnbindRequestAccessLogMessage(final String s)
065 throws LogException
066 {
067 this(new LogMessage(s));
068 }
069
070
071
072 /**
073 * Creates a new unbind request access log message from the provided log
074 * message.
075 *
076 * @param m The log message to be parsed as an unbind request access log
077 * message.
078 */
079 public UnbindRequestAccessLogMessage(final LogMessage m)
080 {
081 super(m);
082 }
083
084
085
086 /**
087 * {@inheritDoc}
088 */
089 @Override()
090 public AccessLogOperationType getOperationType()
091 {
092 return AccessLogOperationType.UNBIND;
093 }
094 }