blob: f96a4a7f2ae55720f27b14b96f16aa738ac082ec [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.directory.shared.ldap.client.api.messages;
/**
* Abandon protocol operation request message. It abandons the given message.
*
* Its syntax is :
* AbandonRequest ::= [APPLICATION 16] MessageID
*
* MessageID ::= INTEGER (0 .. maxInt)
*
* maxInt INTEGER ::= 2147483647 -- (2^^31 - 1) --
*
* @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
*/
public class AbandonRequest extends AbstractRequest
{
/** The abandoned message ID */
private int abandonedMessageId;
/**
*
* Creates a new instance of AbandonRequestImpl.
*/
public AbandonRequest()
{
super();
}
/**
* Get the abandoned message ID
*
* @return Returns the abandoned MessageId.
*/
public int getAbandonedMessageId()
{
return abandonedMessageId;
}
/**
* Set the abandoned message ID
*
* @param abandonedMessageId The abandoned messageID to set.
*/
public AbandonRequest setAbandonedMessageId( int abandonedMessageId )
{
this.abandonedMessageId = abandonedMessageId;
return this;
}
/**
* Return a String representing an AbandonRequest
*
* @return A String representing the AbandonRequest
*/
public String toString()
{
StringBuffer sb = new StringBuffer();
sb.append( super.toString() );
sb.append( " Abandon Request :\n" );
sb.append( " Message Id : " ).append( abandonedMessageId ).append( '\n' );
return sb.toString();
}
}