You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2012/01/24 18:27:12 UTC
svn commit: r1235364 [22/27] - in /directory/shared/trunk:
asn1/api/src/main/java/org/apache/directory/shared/asn1/util/
asn1/api/src/test/java/org/apache/directory/shared/asn1/util/
asn1/ber/src/main/java/org/apache/directory/shared/asn1/actions/ asn1...
Modified: directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncInfoValueDecorator.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncInfoValueDecorator.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncInfoValueDecorator.java (original)
+++ directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncInfoValueDecorator.java Tue Jan 24 17:27:00 2012
@@ -81,13 +81,13 @@ public class SyncInfoValueDecorator exte
{
this( codec );
- setType( type);
+ setType( type );
}
-
/** The global length for this control */
private int syncInfoValueLength;
+
/**
* {@inheritDoc}
*/
@@ -240,7 +240,7 @@ public class SyncInfoValueDecorator exte
switch ( getType() )
{
- case NEW_COOKIE :
+ case NEW_COOKIE:
if ( getCookie() != null )
{
syncInfoValueLength = 1 + TLV.getNbBytes( getCookie().length ) + getCookie().length;
@@ -255,15 +255,15 @@ public class SyncInfoValueDecorator exte
// Call the super class to compute the global control length
return valueLength;
- case REFRESH_DELETE :
- case REFRESH_PRESENT :
+ case REFRESH_DELETE:
+ case REFRESH_PRESENT:
if ( getCookie() != null )
{
syncInfoValueLength = 1 + TLV.getNbBytes( getCookie().length ) + getCookie().length;
}
// The refreshDone flag, only if not true, as it default to true
- if ( ! isRefreshDone() )
+ if ( !isRefreshDone() )
{
syncInfoValueLength += 1 + 1 + 1;
}
@@ -273,7 +273,7 @@ public class SyncInfoValueDecorator exte
// Call the super class to compute the global control length
return valueLength;
- case SYNC_ID_SET :
+ case SYNC_ID_SET:
if ( getCookie() != null )
{
syncInfoValueLength = 1 + TLV.getNbBytes( getCookie().length ) + getCookie().length;
@@ -290,7 +290,7 @@ public class SyncInfoValueDecorator exte
if ( getSyncUUIDs().size() != 0 )
{
- for ( byte[] syncUUID: getSyncUUIDs() )
+ for ( byte[] syncUUID : getSyncUUIDs() )
{
int uuidLength = 1 + TLV.getNbBytes( syncUUID.length ) + syncUUID.length;
@@ -304,7 +304,7 @@ public class SyncInfoValueDecorator exte
// Call the super class to compute the global control length
return valueLength;
- default :
+ default:
}
@@ -329,9 +329,9 @@ public class SyncInfoValueDecorator exte
switch ( getType() )
{
- case NEW_COOKIE :
+ case NEW_COOKIE:
// The first case : newCookie
- buffer.put( (byte)SyncInfoValueTags.NEW_COOKIE_TAG.getValue() );
+ buffer.put( ( byte ) SyncInfoValueTags.NEW_COOKIE_TAG.getValue() );
// As the OCTET_STRING is absorbed by the Application tag,
// we have to store the L and V separately
@@ -347,9 +347,9 @@ public class SyncInfoValueDecorator exte
break;
- case REFRESH_DELETE :
+ case REFRESH_DELETE:
// The second case : refreshDelete
- buffer.put( (byte)SyncInfoValueTags.REFRESH_DELETE_TAG.getValue() );
+ buffer.put( ( byte ) SyncInfoValueTags.REFRESH_DELETE_TAG.getValue() );
buffer.put( TLV.getBytes( syncInfoValueLength ) );
// The cookie, if any
@@ -359,16 +359,16 @@ public class SyncInfoValueDecorator exte
}
// The refreshDone flag
- if ( ! isRefreshDone() )
+ if ( !isRefreshDone() )
{
Value.encode( buffer, isRefreshDone() );
}
break;
- case REFRESH_PRESENT :
+ case REFRESH_PRESENT:
// The third case : refreshPresent
- buffer.put( (byte)SyncInfoValueTags.REFRESH_PRESENT_TAG.getValue() );
+ buffer.put( ( byte ) SyncInfoValueTags.REFRESH_PRESENT_TAG.getValue() );
buffer.put( TLV.getBytes( syncInfoValueLength ) );
// The cookie, if any
@@ -378,16 +378,16 @@ public class SyncInfoValueDecorator exte
}
// The refreshDone flag
- if ( ! isRefreshDone() )
+ if ( !isRefreshDone() )
{
Value.encode( buffer, isRefreshDone() );
}
break;
- case SYNC_ID_SET :
+ case SYNC_ID_SET:
// The last case : syncIdSet
- buffer.put( (byte)SyncInfoValueTags.SYNC_ID_SET_TAG.getValue() );
+ buffer.put( ( byte ) SyncInfoValueTags.SYNC_ID_SET_TAG.getValue() );
buffer.put( TLV.getBytes( syncInfoValueLength ) );
// The cookie, if any
@@ -409,9 +409,9 @@ public class SyncInfoValueDecorator exte
// Loop on the UUIDs if any
if ( getSyncUUIDs().size() != 0 )
{
- for ( byte[] syncUUID: getSyncUUIDs() )
+ for ( byte[] syncUUID : getSyncUUIDs() )
{
- Value.encode( buffer , syncUUID );
+ Value.encode( buffer, syncUUID );
}
}
}
@@ -435,7 +435,7 @@ public class SyncInfoValueDecorator exte
switch ( getType() )
{
- case NEW_COOKIE :
+ case NEW_COOKIE:
// The first case : newCookie
buffer.put( ( byte ) SyncInfoValueTags.NEW_COOKIE_TAG.getValue() );
@@ -453,9 +453,9 @@ public class SyncInfoValueDecorator exte
break;
- case REFRESH_DELETE :
+ case REFRESH_DELETE:
// The second case : refreshDelete
- buffer.put( (byte)SyncInfoValueTags.REFRESH_DELETE_TAG.getValue() );
+ buffer.put( ( byte ) SyncInfoValueTags.REFRESH_DELETE_TAG.getValue() );
buffer.put( TLV.getBytes( syncInfoValueLength ) );
// The cookie, if any
@@ -465,16 +465,16 @@ public class SyncInfoValueDecorator exte
}
// The refreshDone flag
- if ( ! isRefreshDone() )
+ if ( !isRefreshDone() )
{
Value.encode( buffer, isRefreshDone() );
}
break;
- case REFRESH_PRESENT :
+ case REFRESH_PRESENT:
// The third case : refreshPresent
- buffer.put( (byte)SyncInfoValueTags.REFRESH_PRESENT_TAG.getValue() );
+ buffer.put( ( byte ) SyncInfoValueTags.REFRESH_PRESENT_TAG.getValue() );
buffer.put( TLV.getBytes( syncInfoValueLength ) );
// The cookie, if any
@@ -484,16 +484,16 @@ public class SyncInfoValueDecorator exte
}
// The refreshDone flag
- if ( ! isRefreshDone() )
+ if ( !isRefreshDone() )
{
Value.encode( buffer, isRefreshDone() );
}
break;
- case SYNC_ID_SET :
+ case SYNC_ID_SET:
// The last case : syncIdSet
- buffer.put( (byte)SyncInfoValueTags.SYNC_ID_SET_TAG.getValue() );
+ buffer.put( ( byte ) SyncInfoValueTags.SYNC_ID_SET_TAG.getValue() );
buffer.put( TLV.getBytes( syncInfoValueLength ) );
// The cookie, if any
@@ -515,9 +515,9 @@ public class SyncInfoValueDecorator exte
// Loop on the UUIDs if any
if ( getSyncUUIDs().size() != 0 )
{
- for ( byte[] syncUUID: getSyncUUIDs() )
+ for ( byte[] syncUUID : getSyncUUIDs() )
{
- Value.encode( buffer , syncUUID );
+ Value.encode( buffer, syncUUID );
}
}
}
Modified: directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncInfoValueFactory.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncInfoValueFactory.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncInfoValueFactory.java (original)
+++ directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncInfoValueFactory.java Tue Jan 24 17:27:00 2012
@@ -33,9 +33,9 @@ import org.apache.directory.shared.ldap.
*/
public class SyncInfoValueFactory implements ControlFactory<SyncInfoValue, SyncInfoValueDecorator>
{
-
+
private LdapApiService codec;
-
+
/**
* Creates a new instance of SyncInfoValueFactory.
@@ -46,7 +46,7 @@ public class SyncInfoValueFactory implem
{
this.codec = codec;
}
-
+
/**
* {@inheritDoc}
@@ -56,7 +56,7 @@ public class SyncInfoValueFactory implem
return SyncInfoValue.OID;
}
-
+
/**
* {@inheritDoc}
*/
@@ -64,7 +64,7 @@ public class SyncInfoValueFactory implem
{
return new SyncInfoValueDecorator( codec );
}
-
+
/**
* {@inheritDoc}
Modified: directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncInfoValueGrammar.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncInfoValueGrammar.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncInfoValueGrammar.java (original)
+++ directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncInfoValueGrammar.java Tue Jan 24 17:27:00 2012
@@ -91,34 +91,33 @@ public final class SyncInfoValueGrammar
*
* Initialize the syncInfoValue object
*/
- super.transitions[SyncInfoValueStatesEnum.START_STATE.ordinal()][SyncInfoValueTags.NEW_COOKIE_TAG.getValue()] =
- new GrammarTransition( SyncInfoValueStatesEnum.START_STATE,
- SyncInfoValueStatesEnum.NEW_COOKIE_STATE,
- SyncInfoValueTags.NEW_COOKIE_TAG.getValue(),
+ super.transitions[SyncInfoValueStatesEnum.START_STATE.ordinal()][SyncInfoValueTags.NEW_COOKIE_TAG.getValue()] =
+ new GrammarTransition( SyncInfoValueStatesEnum.START_STATE,
+ SyncInfoValueStatesEnum.NEW_COOKIE_STATE,
+ SyncInfoValueTags.NEW_COOKIE_TAG.getValue(),
new GrammarAction<SyncInfoValueContainer>( "NewCookie choice for SyncInfoValueControl" )
- {
- public void action( SyncInfoValueContainer container )
{
- SyncInfoValue control = container.getSyncInfoValueControl();
+ public void action( SyncInfoValueContainer container )
+ {
+ SyncInfoValue control = container.getSyncInfoValueControl();
- Value value = container.getCurrentTLV().getValue();
+ Value value = container.getCurrentTLV().getValue();
- byte[] newCookie = value.getData();
+ byte[] newCookie = value.getData();
- if ( IS_DEBUG )
- {
- LOG.debug( "newcookie = " + Strings.dumpBytes(newCookie) );
- }
+ if ( IS_DEBUG )
+ {
+ LOG.debug( "newcookie = " + Strings.dumpBytes( newCookie ) );
+ }
- control.setCookie( newCookie );
+ control.setCookie( newCookie );
- // We can have an END transition
- container.setGrammarEndAllowed( true );
-
- container.setSyncInfoValueControl( control );
- }
- } );
+ // We can have an END transition
+ container.setGrammarEndAllowed( true );
+ container.setSyncInfoValueControl( control );
+ }
+ } );
/**
* Transition from initial state to SyncInfoValue refreshDelete choice
@@ -129,23 +128,23 @@ public final class SyncInfoValueGrammar
*
* Initialize the syncInfoValue object
*/
- super.transitions[SyncInfoValueStatesEnum.START_STATE.ordinal()][SyncInfoValueTags.REFRESH_DELETE_TAG.getValue()] =
- new GrammarTransition( SyncInfoValueStatesEnum.START_STATE,
- SyncInfoValueStatesEnum.REFRESH_DELETE_STATE,
- SyncInfoValueTags.REFRESH_DELETE_TAG.getValue(),
+ super.transitions[SyncInfoValueStatesEnum.START_STATE.ordinal()][SyncInfoValueTags.REFRESH_DELETE_TAG
+ .getValue()] =
+ new GrammarTransition( SyncInfoValueStatesEnum.START_STATE,
+ SyncInfoValueStatesEnum.REFRESH_DELETE_STATE,
+ SyncInfoValueTags.REFRESH_DELETE_TAG.getValue(),
new GrammarAction<SyncInfoValueContainer>( "RefreshDelete choice for SyncInfoValueControl" )
- {
- public void action( SyncInfoValueContainer container )
{
- SyncInfoValue control = container.getSyncInfoValueControl();
-
- container.setSyncInfoValueControl( control );
-
- // We can have an END transition
- container.setGrammarEndAllowed( true );
- }
- } );
+ public void action( SyncInfoValueContainer container )
+ {
+ SyncInfoValue control = container.getSyncInfoValueControl();
+
+ container.setSyncInfoValueControl( control );
+ // We can have an END transition
+ container.setGrammarEndAllowed( true );
+ }
+ } );
/**
* Transition from refreshDelete state to cookie
@@ -155,33 +154,32 @@ public final class SyncInfoValueGrammar
*
* Load the cookie object
*/
- super.transitions[SyncInfoValueStatesEnum.REFRESH_DELETE_STATE.ordinal()][UniversalTag.OCTET_STRING.getValue()] =
- new GrammarTransition( SyncInfoValueStatesEnum.REFRESH_DELETE_STATE,
- SyncInfoValueStatesEnum.REFRESH_DELETE_COOKIE_STATE,
- UniversalTag.OCTET_STRING.getValue(),
+ super.transitions[SyncInfoValueStatesEnum.REFRESH_DELETE_STATE.ordinal()][UniversalTag.OCTET_STRING.getValue()] =
+ new GrammarTransition( SyncInfoValueStatesEnum.REFRESH_DELETE_STATE,
+ SyncInfoValueStatesEnum.REFRESH_DELETE_COOKIE_STATE,
+ UniversalTag.OCTET_STRING.getValue(),
new GrammarAction<SyncInfoValueContainer>( "RefreshDelete cookie" )
- {
- public void action( SyncInfoValueContainer container )
{
- SyncInfoValue control = container.getSyncInfoValueControl();
-
- Value value = container.getCurrentTLV().getValue();
+ public void action( SyncInfoValueContainer container )
+ {
+ SyncInfoValue control = container.getSyncInfoValueControl();
- byte[] cookie = value.getData();
+ Value value = container.getCurrentTLV().getValue();
- if ( IS_DEBUG )
- {
- LOG.debug( "cookie = " + Strings.dumpBytes(cookie) );
- }
+ byte[] cookie = value.getData();
- container.getSyncInfoValueControl().setCookie( cookie );
- container.setSyncInfoValueControl( control );
+ if ( IS_DEBUG )
+ {
+ LOG.debug( "cookie = " + Strings.dumpBytes( cookie ) );
+ }
- // We can have an END transition
- container.setGrammarEndAllowed( true );
- }
- } );
+ container.getSyncInfoValueControl().setCookie( cookie );
+ container.setSyncInfoValueControl( control );
+ // We can have an END transition
+ container.setGrammarEndAllowed( true );
+ }
+ } );
/**
* Transition from refreshDelete cookie state to refreshDone
@@ -192,47 +190,46 @@ public final class SyncInfoValueGrammar
*
* Load the refreshDone flag
*/
- super.transitions[SyncInfoValueStatesEnum.REFRESH_DELETE_COOKIE_STATE.ordinal()][UniversalTag.BOOLEAN.getValue()] =
- new GrammarTransition( SyncInfoValueStatesEnum.REFRESH_DELETE_COOKIE_STATE,
- SyncInfoValueStatesEnum.LAST_SYNC_INFO_VALUE_STATE,
- UniversalTag.BOOLEAN.getValue(),
+ super.transitions[SyncInfoValueStatesEnum.REFRESH_DELETE_COOKIE_STATE.ordinal()][UniversalTag.BOOLEAN
+ .getValue()] =
+ new GrammarTransition( SyncInfoValueStatesEnum.REFRESH_DELETE_COOKIE_STATE,
+ SyncInfoValueStatesEnum.LAST_SYNC_INFO_VALUE_STATE,
+ UniversalTag.BOOLEAN.getValue(),
new GrammarAction<SyncInfoValueContainer>( "RefreshDelete refreshDone flag" )
- {
- public void action( SyncInfoValueContainer container ) throws DecoderException
{
- SyncInfoValue control = container.getSyncInfoValueControl();
-
- Value value = container.getCurrentTLV().getValue();
-
- try
+ public void action( SyncInfoValueContainer container ) throws DecoderException
{
- boolean refreshDone = BooleanDecoder.parse( value );
+ SyncInfoValue control = container.getSyncInfoValueControl();
- if ( IS_DEBUG )
+ Value value = container.getCurrentTLV().getValue();
+
+ try
{
- LOG.debug( "refreshDone = {}", refreshDone );
- }
+ boolean refreshDone = BooleanDecoder.parse( value );
- control.setRefreshDone( refreshDone );
+ if ( IS_DEBUG )
+ {
+ LOG.debug( "refreshDone = {}", refreshDone );
+ }
- container.setSyncInfoValueControl( control );
-
- // the END transition for grammar
- container.setGrammarEndAllowed( true );
- }
- catch ( BooleanDecoderException be )
- {
- String msg = I18n.err( I18n.ERR_04025 );
- LOG.error( msg, be );
- throw new DecoderException( msg );
- }
+ control.setRefreshDone( refreshDone );
+ container.setSyncInfoValueControl( control );
- // We can have an END transition
- container.setGrammarEndAllowed( true );
- }
- } );
+ // the END transition for grammar
+ container.setGrammarEndAllowed( true );
+ }
+ catch ( BooleanDecoderException be )
+ {
+ String msg = I18n.err( I18n.ERR_04025 );
+ LOG.error( msg, be );
+ throw new DecoderException( msg );
+ }
+ // We can have an END transition
+ container.setGrammarEndAllowed( true );
+ }
+ } );
/**
* Transition from refreshDelete choice state to refreshDone
@@ -243,48 +240,46 @@ public final class SyncInfoValueGrammar
*
* Load the refreshDone flag
*/
- super.transitions[SyncInfoValueStatesEnum.REFRESH_DELETE_STATE.ordinal()][UniversalTag.BOOLEAN.getValue()] =
- new GrammarTransition( SyncInfoValueStatesEnum.REFRESH_DELETE_STATE,
- SyncInfoValueStatesEnum.LAST_SYNC_INFO_VALUE_STATE,
- UniversalTag.BOOLEAN.getValue(),
+ super.transitions[SyncInfoValueStatesEnum.REFRESH_DELETE_STATE.ordinal()][UniversalTag.BOOLEAN.getValue()] =
+ new GrammarTransition( SyncInfoValueStatesEnum.REFRESH_DELETE_STATE,
+ SyncInfoValueStatesEnum.LAST_SYNC_INFO_VALUE_STATE,
+ UniversalTag.BOOLEAN.getValue(),
new GrammarAction<SyncInfoValueContainer>( "RefreshDelete refreshDone flag" )
- {
- public void action( SyncInfoValueContainer container ) throws DecoderException
{
- SyncInfoValue control = container.getSyncInfoValueControl();
-
- Value value = container.getCurrentTLV().getValue();
-
- try
+ public void action( SyncInfoValueContainer container ) throws DecoderException
{
- boolean refreshDone = BooleanDecoder.parse( value );
+ SyncInfoValue control = container.getSyncInfoValueControl();
- if ( IS_DEBUG )
+ Value value = container.getCurrentTLV().getValue();
+
+ try
{
- LOG.debug( "refreshDone = {}", refreshDone );
- }
+ boolean refreshDone = BooleanDecoder.parse( value );
- control.setRefreshDone( refreshDone );
+ if ( IS_DEBUG )
+ {
+ LOG.debug( "refreshDone = {}", refreshDone );
+ }
- container.setSyncInfoValueControl( control );
+ control.setRefreshDone( refreshDone );
- // the END transition for grammar
+ container.setSyncInfoValueControl( control );
+
+ // the END transition for grammar
+ container.setGrammarEndAllowed( true );
+ }
+ catch ( BooleanDecoderException be )
+ {
+ String msg = I18n.err( I18n.ERR_04025 );
+ LOG.error( msg, be );
+ throw new DecoderException( msg );
+ }
+
+ // We can have an END transition
container.setGrammarEndAllowed( true );
}
- catch ( BooleanDecoderException be )
- {
- String msg = I18n.err( I18n.ERR_04025 );
- LOG.error( msg, be );
- throw new DecoderException( msg );
- }
-
+ } );
- // We can have an END transition
- container.setGrammarEndAllowed( true );
- }
- } );
-
-
/**
* Transition from initial state to SyncInfoValue refreshPresent choice
* SyncInfoValue ::= CHOICE {
@@ -294,24 +289,24 @@ public final class SyncInfoValueGrammar
*
* Initialize the syncInfoValue object
*/
- super.transitions[SyncInfoValueStatesEnum.START_STATE.ordinal()][SyncInfoValueTags.REFRESH_PRESENT_TAG.getValue()] =
- new GrammarTransition( SyncInfoValueStatesEnum.START_STATE,
- SyncInfoValueStatesEnum.REFRESH_PRESENT_STATE,
- SyncInfoValueTags.REFRESH_PRESENT_TAG.getValue(),
+ super.transitions[SyncInfoValueStatesEnum.START_STATE.ordinal()][SyncInfoValueTags.REFRESH_PRESENT_TAG
+ .getValue()] =
+ new GrammarTransition( SyncInfoValueStatesEnum.START_STATE,
+ SyncInfoValueStatesEnum.REFRESH_PRESENT_STATE,
+ SyncInfoValueTags.REFRESH_PRESENT_TAG.getValue(),
new GrammarAction<SyncInfoValueContainer>( "RefreshDelete choice for SyncInfoValueControl" )
- {
- public void action( SyncInfoValueContainer container )
{
- SyncInfoValue control = container.getSyncInfoValueControl();
-
- container.setSyncInfoValueControl( control );
-
- // We can have an END transition
- container.setGrammarEndAllowed( true );
- }
- } );
+ public void action( SyncInfoValueContainer container )
+ {
+ SyncInfoValue control = container.getSyncInfoValueControl();
+
+ container.setSyncInfoValueControl( control );
+
+ // We can have an END transition
+ container.setGrammarEndAllowed( true );
+ }
+ } );
-
/**
* Transition from refreshPresent state to cookie
* refreshPresent [2] SEQUENCE {
@@ -320,35 +315,32 @@ public final class SyncInfoValueGrammar
*
* Load the cookie object
*/
- super.transitions[SyncInfoValueStatesEnum.REFRESH_PRESENT_STATE.ordinal()][UniversalTag.OCTET_STRING.getValue()] =
- new GrammarTransition( SyncInfoValueStatesEnum.REFRESH_PRESENT_STATE,
- SyncInfoValueStatesEnum.REFRESH_PRESENT_COOKIE_STATE,
- UniversalTag.OCTET_STRING.getValue(),
+ super.transitions[SyncInfoValueStatesEnum.REFRESH_PRESENT_STATE.ordinal()][UniversalTag.OCTET_STRING.getValue()] =
+ new GrammarTransition( SyncInfoValueStatesEnum.REFRESH_PRESENT_STATE,
+ SyncInfoValueStatesEnum.REFRESH_PRESENT_COOKIE_STATE,
+ UniversalTag.OCTET_STRING.getValue(),
new GrammarAction<SyncInfoValueContainer>( "RefreshPresent cookie" )
- {
- public void action( SyncInfoValueContainer container )
{
- SyncInfoValue control = container.getSyncInfoValueControl();
-
- Value value = container.getCurrentTLV().getValue();
+ public void action( SyncInfoValueContainer container )
+ {
+ SyncInfoValue control = container.getSyncInfoValueControl();
- byte[] cookie = value.getData();
+ Value value = container.getCurrentTLV().getValue();
- if ( IS_DEBUG )
- {
- LOG.debug( "cookie = " + Strings.dumpBytes(cookie) );
- }
+ byte[] cookie = value.getData();
- container.getSyncInfoValueControl().setCookie( cookie );
- container.setSyncInfoValueControl( control );
+ if ( IS_DEBUG )
+ {
+ LOG.debug( "cookie = " + Strings.dumpBytes( cookie ) );
+ }
- // We can have an END transition
- container.setGrammarEndAllowed( true );
- }
- } );
-
-
+ container.getSyncInfoValueControl().setCookie( cookie );
+ container.setSyncInfoValueControl( control );
+ // We can have an END transition
+ container.setGrammarEndAllowed( true );
+ }
+ } );
/**
* Transition from refreshPresent cookie state to refreshDone
@@ -359,47 +351,46 @@ public final class SyncInfoValueGrammar
*
* Load the refreshDone flag
*/
- super.transitions[SyncInfoValueStatesEnum.REFRESH_PRESENT_COOKIE_STATE.ordinal()][UniversalTag.BOOLEAN.getValue()] =
- new GrammarTransition( SyncInfoValueStatesEnum.REFRESH_PRESENT_COOKIE_STATE,
- SyncInfoValueStatesEnum.LAST_SYNC_INFO_VALUE_STATE,
- UniversalTag.BOOLEAN.getValue(),
+ super.transitions[SyncInfoValueStatesEnum.REFRESH_PRESENT_COOKIE_STATE.ordinal()][UniversalTag.BOOLEAN
+ .getValue()] =
+ new GrammarTransition( SyncInfoValueStatesEnum.REFRESH_PRESENT_COOKIE_STATE,
+ SyncInfoValueStatesEnum.LAST_SYNC_INFO_VALUE_STATE,
+ UniversalTag.BOOLEAN.getValue(),
new GrammarAction<SyncInfoValueContainer>( "RefreshPresent refreshDone flag" )
- {
- public void action( SyncInfoValueContainer container ) throws DecoderException
{
- SyncInfoValue control = container.getSyncInfoValueControl();
-
- Value value = container.getCurrentTLV().getValue();
-
- try
+ public void action( SyncInfoValueContainer container ) throws DecoderException
{
- boolean refreshDone = BooleanDecoder.parse( value );
+ SyncInfoValue control = container.getSyncInfoValueControl();
- if ( IS_DEBUG )
+ Value value = container.getCurrentTLV().getValue();
+
+ try
{
- LOG.debug( "refreshDone = {}", refreshDone );
- }
+ boolean refreshDone = BooleanDecoder.parse( value );
- control.setRefreshDone( refreshDone );
+ if ( IS_DEBUG )
+ {
+ LOG.debug( "refreshDone = {}", refreshDone );
+ }
- container.setSyncInfoValueControl( control );
+ control.setRefreshDone( refreshDone );
- // the END transition for grammar
- container.setGrammarEndAllowed( true );
- }
- catch ( BooleanDecoderException be )
- {
- String msg = I18n.err( I18n.ERR_04025 );
- LOG.error( msg, be );
- throw new DecoderException( msg );
- }
+ container.setSyncInfoValueControl( control );
+ // the END transition for grammar
+ container.setGrammarEndAllowed( true );
+ }
+ catch ( BooleanDecoderException be )
+ {
+ String msg = I18n.err( I18n.ERR_04025 );
+ LOG.error( msg, be );
+ throw new DecoderException( msg );
+ }
- // We can have an END transition
- container.setGrammarEndAllowed( true );
- }
- } );
-
+ // We can have an END transition
+ container.setGrammarEndAllowed( true );
+ }
+ } );
/**
* Transition from refreshPresent choice state to refreshDone
@@ -410,47 +401,46 @@ public final class SyncInfoValueGrammar
*
* Load the refreshDone flag
*/
- super.transitions[SyncInfoValueStatesEnum.REFRESH_PRESENT_STATE.ordinal()][UniversalTag.BOOLEAN.getValue()] =
- new GrammarTransition( SyncInfoValueStatesEnum.REFRESH_PRESENT_STATE,
- SyncInfoValueStatesEnum.LAST_SYNC_INFO_VALUE_STATE,
- UniversalTag.BOOLEAN.getValue(),
+ super.transitions[SyncInfoValueStatesEnum.REFRESH_PRESENT_STATE.ordinal()][UniversalTag.BOOLEAN.getValue()] =
+ new GrammarTransition( SyncInfoValueStatesEnum.REFRESH_PRESENT_STATE,
+ SyncInfoValueStatesEnum.LAST_SYNC_INFO_VALUE_STATE,
+ UniversalTag.BOOLEAN.getValue(),
new GrammarAction<SyncInfoValueContainer>( "RefreshPresent refreshDone flag" )
- {
- public void action( SyncInfoValueContainer container ) throws DecoderException
{
- SyncInfoValue control = container.getSyncInfoValueControl();
-
- Value value = container.getCurrentTLV().getValue();
-
- try
+ public void action( SyncInfoValueContainer container ) throws DecoderException
{
- boolean refreshDone = BooleanDecoder.parse( value );
+ SyncInfoValue control = container.getSyncInfoValueControl();
- if ( IS_DEBUG )
+ Value value = container.getCurrentTLV().getValue();
+
+ try
{
- LOG.debug( "refreshDone = {}", refreshDone );
- }
+ boolean refreshDone = BooleanDecoder.parse( value );
- control.setRefreshDone( refreshDone );
+ if ( IS_DEBUG )
+ {
+ LOG.debug( "refreshDone = {}", refreshDone );
+ }
- container.setSyncInfoValueControl( control );
+ control.setRefreshDone( refreshDone );
+
+ container.setSyncInfoValueControl( control );
+
+ // the END transition for grammar
+ container.setGrammarEndAllowed( true );
+ }
+ catch ( BooleanDecoderException be )
+ {
+ String msg = I18n.err( I18n.ERR_04025 );
+ LOG.error( msg, be );
+ throw new DecoderException( msg );
+ }
- // the END transition for grammar
+ // We can have an END transition
container.setGrammarEndAllowed( true );
}
- catch ( BooleanDecoderException be )
- {
- String msg = I18n.err( I18n.ERR_04025 );
- LOG.error( msg, be );
- throw new DecoderException( msg );
- }
+ } );
- // We can have an END transition
- container.setGrammarEndAllowed( true );
- }
- } );
-
-
/**
* Transition from initial state to SyncInfoValue syncIdSet choice
* SyncInfoValue ::= CHOICE {
@@ -460,21 +450,20 @@ public final class SyncInfoValueGrammar
*
* Initialize the syncInfoValue object
*/
- super.transitions[SyncInfoValueStatesEnum.START_STATE.ordinal()][SyncInfoValueTags.SYNC_ID_SET_TAG.getValue()] =
- new GrammarTransition( SyncInfoValueStatesEnum.START_STATE,
- SyncInfoValueStatesEnum.SYNC_ID_SET_STATE,
- SyncInfoValueTags.SYNC_ID_SET_TAG.getValue(),
+ super.transitions[SyncInfoValueStatesEnum.START_STATE.ordinal()][SyncInfoValueTags.SYNC_ID_SET_TAG.getValue()] =
+ new GrammarTransition( SyncInfoValueStatesEnum.START_STATE,
+ SyncInfoValueStatesEnum.SYNC_ID_SET_STATE,
+ SyncInfoValueTags.SYNC_ID_SET_TAG.getValue(),
new GrammarAction<SyncInfoValueContainer>( "SyncIdSet choice for SyncInfoValueControl" )
- {
- public void action( SyncInfoValueContainer container )
{
- SyncInfoValue control = container.getSyncInfoValueControl();
-
- container.setSyncInfoValueControl( control );
- }
- } );
-
-
+ public void action( SyncInfoValueContainer container )
+ {
+ SyncInfoValue control = container.getSyncInfoValueControl();
+
+ container.setSyncInfoValueControl( control );
+ }
+ } );
+
/**
* Transition from syncIdSet state to cookie
* syncIdSet [3] SEQUENCE {
@@ -483,31 +472,30 @@ public final class SyncInfoValueGrammar
*
* Load the cookie object
*/
- super.transitions[SyncInfoValueStatesEnum.SYNC_ID_SET_STATE.ordinal()][UniversalTag.OCTET_STRING.getValue()] =
- new GrammarTransition( SyncInfoValueStatesEnum.SYNC_ID_SET_STATE,
- SyncInfoValueStatesEnum.SYNC_ID_SET_COOKIE_STATE,
- UniversalTag.OCTET_STRING.getValue(),
+ super.transitions[SyncInfoValueStatesEnum.SYNC_ID_SET_STATE.ordinal()][UniversalTag.OCTET_STRING.getValue()] =
+ new GrammarTransition( SyncInfoValueStatesEnum.SYNC_ID_SET_STATE,
+ SyncInfoValueStatesEnum.SYNC_ID_SET_COOKIE_STATE,
+ UniversalTag.OCTET_STRING.getValue(),
new GrammarAction<SyncInfoValueContainer>( "SyncIdSet cookie" )
- {
- public void action( SyncInfoValueContainer container )
{
- SyncInfoValue control = container.getSyncInfoValueControl();
-
- Value value = container.getCurrentTLV().getValue();
+ public void action( SyncInfoValueContainer container )
+ {
+ SyncInfoValue control = container.getSyncInfoValueControl();
- byte[] cookie = value.getData();
+ Value value = container.getCurrentTLV().getValue();
- if ( IS_DEBUG )
- {
- LOG.debug( "cookie = " + Strings.dumpBytes(cookie) );
+ byte[] cookie = value.getData();
+
+ if ( IS_DEBUG )
+ {
+ LOG.debug( "cookie = " + Strings.dumpBytes( cookie ) );
+ }
+
+ container.getSyncInfoValueControl().setCookie( cookie );
+ container.setSyncInfoValueControl( control );
}
+ } );
- container.getSyncInfoValueControl().setCookie( cookie );
- container.setSyncInfoValueControl( control );
- }
- } );
-
-
/**
* Transition from syncIdSet state to refreshDeletes
* syncIdSet [3] SEQUENCE {
@@ -517,41 +505,40 @@ public final class SyncInfoValueGrammar
*
* Load the refreshDeletes flag
*/
- super.transitions[SyncInfoValueStatesEnum.SYNC_ID_SET_STATE.ordinal()][UniversalTag.BOOLEAN.getValue()] =
- new GrammarTransition( SyncInfoValueStatesEnum.SYNC_ID_SET_STATE,
- SyncInfoValueStatesEnum.SYNC_ID_SET_REFRESH_DELETES_STATE,
- UniversalTag.BOOLEAN.getValue(),
+ super.transitions[SyncInfoValueStatesEnum.SYNC_ID_SET_STATE.ordinal()][UniversalTag.BOOLEAN.getValue()] =
+ new GrammarTransition( SyncInfoValueStatesEnum.SYNC_ID_SET_STATE,
+ SyncInfoValueStatesEnum.SYNC_ID_SET_REFRESH_DELETES_STATE,
+ UniversalTag.BOOLEAN.getValue(),
new GrammarAction<SyncInfoValueContainer>( "SyncIdSet refreshDeletes" )
- {
- public void action( SyncInfoValueContainer container ) throws DecoderException
{
- SyncInfoValue control = container.getSyncInfoValueControl();
-
- Value value = container.getCurrentTLV().getValue();
-
- try
+ public void action( SyncInfoValueContainer container ) throws DecoderException
{
- boolean refreshDeletes = BooleanDecoder.parse( value );
+ SyncInfoValue control = container.getSyncInfoValueControl();
- if ( IS_DEBUG )
+ Value value = container.getCurrentTLV().getValue();
+
+ try
{
- LOG.debug( "refreshDeletes = {}", refreshDeletes );
- }
+ boolean refreshDeletes = BooleanDecoder.parse( value );
- control.setRefreshDeletes( refreshDeletes );
+ if ( IS_DEBUG )
+ {
+ LOG.debug( "refreshDeletes = {}", refreshDeletes );
+ }
- container.setSyncInfoValueControl( control );
+ control.setRefreshDeletes( refreshDeletes );
+
+ container.setSyncInfoValueControl( control );
+ }
+ catch ( BooleanDecoderException be )
+ {
+ String msg = I18n.err( I18n.ERR_04026 );
+ LOG.error( msg, be );
+ throw new DecoderException( msg );
+ }
}
- catch ( BooleanDecoderException be )
- {
- String msg = I18n.err( I18n.ERR_04026 );
- LOG.error( msg, be );
- throw new DecoderException( msg );
- }
- }
- } );
-
-
+ } );
+
/**
* Transition from syncIdSet cookie state to refreshDeletes
* syncIdSet [3] SEQUENCE {
@@ -561,41 +548,40 @@ public final class SyncInfoValueGrammar
*
* Load the refreshDeletes flag
*/
- super.transitions[SyncInfoValueStatesEnum.SYNC_ID_SET_COOKIE_STATE.ordinal()][UniversalTag.BOOLEAN.getValue()] =
- new GrammarTransition( SyncInfoValueStatesEnum.SYNC_ID_SET_COOKIE_STATE,
- SyncInfoValueStatesEnum.SYNC_ID_SET_REFRESH_DELETES_STATE,
- UniversalTag.BOOLEAN.getValue(),
+ super.transitions[SyncInfoValueStatesEnum.SYNC_ID_SET_COOKIE_STATE.ordinal()][UniversalTag.BOOLEAN.getValue()] =
+ new GrammarTransition( SyncInfoValueStatesEnum.SYNC_ID_SET_COOKIE_STATE,
+ SyncInfoValueStatesEnum.SYNC_ID_SET_REFRESH_DELETES_STATE,
+ UniversalTag.BOOLEAN.getValue(),
new GrammarAction<SyncInfoValueContainer>( "SyncIdSet refreshDeletes" )
- {
- public void action( SyncInfoValueContainer container ) throws DecoderException
{
- SyncInfoValue control = container.getSyncInfoValueControl();
-
- Value value = container.getCurrentTLV().getValue();
-
- try
+ public void action( SyncInfoValueContainer container ) throws DecoderException
{
- boolean refreshDeletes = BooleanDecoder.parse( value );
+ SyncInfoValue control = container.getSyncInfoValueControl();
- if ( IS_DEBUG )
+ Value value = container.getCurrentTLV().getValue();
+
+ try
{
- LOG.debug( "refreshDeletes = {}", refreshDeletes );
- }
+ boolean refreshDeletes = BooleanDecoder.parse( value );
- control.setRefreshDeletes( refreshDeletes );
+ if ( IS_DEBUG )
+ {
+ LOG.debug( "refreshDeletes = {}", refreshDeletes );
+ }
- container.setSyncInfoValueControl( control );
+ control.setRefreshDeletes( refreshDeletes );
+
+ container.setSyncInfoValueControl( control );
+ }
+ catch ( BooleanDecoderException be )
+ {
+ String msg = I18n.err( I18n.ERR_04024 );
+ LOG.error( msg, be );
+ throw new DecoderException( msg );
+ }
}
- catch ( BooleanDecoderException be )
- {
- String msg = I18n.err( I18n.ERR_04024 );
- LOG.error( msg, be );
- throw new DecoderException( msg );
- }
- }
- } );
-
-
+ } );
+
/**
* Transition from syncIdSet state to syncUUIDs
* syncIdSet [3] SEQUENCE {
@@ -605,20 +591,19 @@ public final class SyncInfoValueGrammar
*
* Initialize the UUID set : no action associated, except allowing a grammar end
*/
- super.transitions[SyncInfoValueStatesEnum.SYNC_ID_SET_STATE.ordinal()][UniversalTag.SET.getValue()] =
- new GrammarTransition( SyncInfoValueStatesEnum.SYNC_ID_SET_STATE,
- SyncInfoValueStatesEnum.SYNC_ID_SET_SET_OF_UUIDS_STATE,
- UniversalTag.SET.getValue(),
+ super.transitions[SyncInfoValueStatesEnum.SYNC_ID_SET_STATE.ordinal()][UniversalTag.SET.getValue()] =
+ new GrammarTransition( SyncInfoValueStatesEnum.SYNC_ID_SET_STATE,
+ SyncInfoValueStatesEnum.SYNC_ID_SET_SET_OF_UUIDS_STATE,
+ UniversalTag.SET.getValue(),
new GrammarAction<SyncInfoValueContainer>( "SyncIdSet syncUUIDs" )
- {
- public void action( SyncInfoValueContainer container ) throws DecoderException
{
- // We can have an END transition
- container.setGrammarEndAllowed( true );
- }
- } );
-
-
+ public void action( SyncInfoValueContainer container ) throws DecoderException
+ {
+ // We can have an END transition
+ container.setGrammarEndAllowed( true );
+ }
+ } );
+
/**
* Transition from syncIdSet cookie state to syncUUIDs
* syncIdSet [3] SEQUENCE {
@@ -628,20 +613,19 @@ public final class SyncInfoValueGrammar
*
* Initialize the UUID set : no action associated
*/
- super.transitions[SyncInfoValueStatesEnum.SYNC_ID_SET_COOKIE_STATE.ordinal()][UniversalTag.SET.getValue()] =
- new GrammarTransition( SyncInfoValueStatesEnum.SYNC_ID_SET_COOKIE_STATE,
- SyncInfoValueStatesEnum.SYNC_ID_SET_SET_OF_UUIDS_STATE,
- UniversalTag.SET.getValue(),
+ super.transitions[SyncInfoValueStatesEnum.SYNC_ID_SET_COOKIE_STATE.ordinal()][UniversalTag.SET.getValue()] =
+ new GrammarTransition( SyncInfoValueStatesEnum.SYNC_ID_SET_COOKIE_STATE,
+ SyncInfoValueStatesEnum.SYNC_ID_SET_SET_OF_UUIDS_STATE,
+ UniversalTag.SET.getValue(),
new GrammarAction<SyncInfoValueContainer>( "SyncIdSet syncUUIDs" )
- {
- public void action( SyncInfoValueContainer container ) throws DecoderException
{
- // We can have an END transition
- container.setGrammarEndAllowed( true );
- }
- } );
-
-
+ public void action( SyncInfoValueContainer container ) throws DecoderException
+ {
+ // We can have an END transition
+ container.setGrammarEndAllowed( true );
+ }
+ } );
+
/**
* Transition from syncIdSet refreshDeletes state to syncUUIDs
* syncIdSet [3] SEQUENCE {
@@ -651,20 +635,20 @@ public final class SyncInfoValueGrammar
*
* Initialize the UUID set : no action associated
*/
- super.transitions[SyncInfoValueStatesEnum.SYNC_ID_SET_REFRESH_DELETES_STATE.ordinal()][UniversalTag.SET.getValue()] =
- new GrammarTransition( SyncInfoValueStatesEnum.SYNC_ID_SET_REFRESH_DELETES_STATE,
- SyncInfoValueStatesEnum.SYNC_ID_SET_SET_OF_UUIDS_STATE,
- UniversalTag.SET.getValue(),
+ super.transitions[SyncInfoValueStatesEnum.SYNC_ID_SET_REFRESH_DELETES_STATE.ordinal()][UniversalTag.SET
+ .getValue()] =
+ new GrammarTransition( SyncInfoValueStatesEnum.SYNC_ID_SET_REFRESH_DELETES_STATE,
+ SyncInfoValueStatesEnum.SYNC_ID_SET_SET_OF_UUIDS_STATE,
+ UniversalTag.SET.getValue(),
new GrammarAction<SyncInfoValueContainer>( "SyncIdSet syncUUIDs" )
- {
- public void action( SyncInfoValueContainer container ) throws DecoderException
{
- // We can have an END transition
- container.setGrammarEndAllowed( true );
- }
- } );
-
-
+ public void action( SyncInfoValueContainer container ) throws DecoderException
+ {
+ // We can have an END transition
+ container.setGrammarEndAllowed( true );
+ }
+ } );
+
/**
* Transition from syncIdSet syncUUIDs to syncUUID
* syncIdSet [3] SEQUENCE {
@@ -674,42 +658,42 @@ public final class SyncInfoValueGrammar
*
* Add the first UUID in the UUIDs list
*/
- super.transitions[SyncInfoValueStatesEnum.SYNC_ID_SET_SET_OF_UUIDS_STATE.ordinal()][UniversalTag.OCTET_STRING.getValue()] =
- new GrammarTransition( SyncInfoValueStatesEnum.SYNC_ID_SET_SET_OF_UUIDS_STATE,
- SyncInfoValueStatesEnum.SYNC_ID_SET_UUID_STATE,
- UniversalTag.OCTET_STRING.getValue(),
+ super.transitions[SyncInfoValueStatesEnum.SYNC_ID_SET_SET_OF_UUIDS_STATE.ordinal()][UniversalTag.OCTET_STRING
+ .getValue()] =
+ new GrammarTransition( SyncInfoValueStatesEnum.SYNC_ID_SET_SET_OF_UUIDS_STATE,
+ SyncInfoValueStatesEnum.SYNC_ID_SET_UUID_STATE,
+ UniversalTag.OCTET_STRING.getValue(),
new GrammarAction<SyncInfoValueContainer>( "SyncIdSet first UUID" )
- {
- public void action( SyncInfoValueContainer container ) throws DecoderException
{
- SyncInfoValue control = container.getSyncInfoValueControl();
-
- Value value = container.getCurrentTLV().getValue();
-
- byte[] uuid = value.getData();
-
- // UUID must be exactly 16 bytes long
- if ( ( uuid == null ) || ( uuid.length != 16 ) )
+ public void action( SyncInfoValueContainer container ) throws DecoderException
{
- String msg = I18n.err( I18n.ERR_04027 );
- LOG.error( msg );
- throw new DecoderException( msg );
- }
+ SyncInfoValue control = container.getSyncInfoValueControl();
- if ( IS_DEBUG )
- {
- LOG.debug( "UUID = " + Strings.dumpBytes(uuid) );
+ Value value = container.getCurrentTLV().getValue();
+
+ byte[] uuid = value.getData();
+
+ // UUID must be exactly 16 bytes long
+ if ( ( uuid == null ) || ( uuid.length != 16 ) )
+ {
+ String msg = I18n.err( I18n.ERR_04027 );
+ LOG.error( msg );
+ throw new DecoderException( msg );
+ }
+
+ if ( IS_DEBUG )
+ {
+ LOG.debug( "UUID = " + Strings.dumpBytes( uuid ) );
+ }
+
+ // Store the UUID in the UUIDs list
+ control.addSyncUUID( uuid );
+
+ // We can have an END transition
+ container.setGrammarEndAllowed( true );
}
+ } );
- // Store the UUID in the UUIDs list
- control.addSyncUUID( uuid );
-
- // We can have an END transition
- container.setGrammarEndAllowed( true );
- }
- } );
-
-
/**
* Transition from syncIdSet syncUUID to syncUUID
* syncIdSet [3] SEQUENCE {
@@ -719,40 +703,41 @@ public final class SyncInfoValueGrammar
*
* Add a new UUID in the UUIDs list
*/
- super.transitions[SyncInfoValueStatesEnum.SYNC_ID_SET_UUID_STATE.ordinal()][UniversalTag.OCTET_STRING.getValue()] =
- new GrammarTransition( SyncInfoValueStatesEnum.SYNC_ID_SET_UUID_STATE,
- SyncInfoValueStatesEnum.SYNC_ID_SET_UUID_STATE,
- UniversalTag.OCTET_STRING.getValue(),
+ super.transitions[SyncInfoValueStatesEnum.SYNC_ID_SET_UUID_STATE.ordinal()][UniversalTag.OCTET_STRING
+ .getValue()] =
+ new GrammarTransition( SyncInfoValueStatesEnum.SYNC_ID_SET_UUID_STATE,
+ SyncInfoValueStatesEnum.SYNC_ID_SET_UUID_STATE,
+ UniversalTag.OCTET_STRING.getValue(),
new GrammarAction<SyncInfoValueContainer>( "SyncIdSet UUID" )
- {
- public void action( SyncInfoValueContainer container ) throws DecoderException
{
- SyncInfoValue control = container.getSyncInfoValueControl();
-
- Value value = container.getCurrentTLV().getValue();
-
- byte[] uuid = value.getData();
-
- // UUID must be exactly 16 bytes long
- if ( ( uuid == null ) || ( uuid.length != 16 ) )
+ public void action( SyncInfoValueContainer container ) throws DecoderException
{
- String msg = I18n.err( I18n.ERR_04027 );
- LOG.error( msg );
- throw new DecoderException( msg );
- }
+ SyncInfoValue control = container.getSyncInfoValueControl();
- if ( IS_DEBUG )
- {
- LOG.debug( "UUID = " + Strings.dumpBytes(uuid) );
- }
+ Value value = container.getCurrentTLV().getValue();
+
+ byte[] uuid = value.getData();
- // Store the UUID in the UUIDs list
- control.getSyncUUIDs().add( uuid );
-
- // We can have an END transition
- container.setGrammarEndAllowed( true );
- }
- } );
+ // UUID must be exactly 16 bytes long
+ if ( ( uuid == null ) || ( uuid.length != 16 ) )
+ {
+ String msg = I18n.err( I18n.ERR_04027 );
+ LOG.error( msg );
+ throw new DecoderException( msg );
+ }
+
+ if ( IS_DEBUG )
+ {
+ LOG.debug( "UUID = " + Strings.dumpBytes( uuid ) );
+ }
+
+ // Store the UUID in the UUIDs list
+ control.getSyncUUIDs().add( uuid );
+
+ // We can have an END transition
+ container.setGrammarEndAllowed( true );
+ }
+ } );
}
Modified: directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncInfoValueStatesEnum.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncInfoValueStatesEnum.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncInfoValueStatesEnum.java (original)
+++ directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncInfoValueStatesEnum.java Tue Jan 24 17:27:00 2012
@@ -49,41 +49,40 @@ public enum SyncInfoValueStatesEnum impl
/** RefreshDelete state */
REFRESH_DELETE_STATE,
-
+
/** RefreshDelete cookie state */
REFRESH_DELETE_COOKIE_STATE,
-
+
/** RefreshDelete refreshDone state */
REFRESH_DELETE_REFRESH_DONE_STATE,
-
+
/** RefreshPresent state */
REFRESH_PRESENT_STATE,
-
+
/** RefreshPresent cookie state */
REFRESH_PRESENT_COOKIE_STATE,
-
+
/** RefreshPresent refreshDone state */
REFRESH_PRESENT_REFRESH_DONE_STATE,
-
+
/** SyncIdSet state */
SYNC_ID_SET_STATE,
-
+
/** SyncIdSet cookie state */
SYNC_ID_SET_COOKIE_STATE,
-
+
/** SyncIdSet refreshDone state */
SYNC_ID_SET_REFRESH_DELETES_STATE,
-
+
/** SyncIdSet SET OF UUIDs state */
SYNC_ID_SET_SET_OF_UUIDS_STATE,
-
+
/** SyncIdSet UUID state */
SYNC_ID_SET_UUID_STATE,
/** terminal state */
LAST_SYNC_INFO_VALUE_STATE;
-
/**
* Get the grammar name
*
@@ -124,7 +123,7 @@ public enum SyncInfoValueStatesEnum impl
return ( ( state == END_STATE.ordinal() ) ? "SYNC_INFO_VALUE_END_STATE" : this.name() );
}
-
+
/**
* {@inheritDoc}
*/
@@ -132,8 +131,8 @@ public enum SyncInfoValueStatesEnum impl
{
return this == END_STATE;
}
-
-
+
+
/**
* {@inheritDoc}
*/
Modified: directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncInfoValueTags.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncInfoValueTags.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncInfoValueTags.java (original)
+++ directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncInfoValueTags.java Tue Jan 24 17:27:00 2012
@@ -28,14 +28,15 @@ package org.apache.directory.shared.ldap
public enum SyncInfoValueTags
{
/** The tags */
- NEW_COOKIE_TAG( 0x0080 ),
- REFRESH_DELETE_TAG( 0x00A1 ),
- REFRESH_PRESENT_TAG( 0x00A2 ),
- SYNC_ID_SET_TAG( 0x00A3 );
+ NEW_COOKIE_TAG(0x0080),
+ REFRESH_DELETE_TAG(0x00A1),
+ REFRESH_PRESENT_TAG(0x00A2),
+ SYNC_ID_SET_TAG(0x00A3);
/** Internal value for each tag */
private int value;
+
/**
* Create the private instance
* @param value The internal tag value
@@ -44,8 +45,8 @@ public enum SyncInfoValueTags
{
this.value = value;
}
-
-
+
+
/**
* @return The ASN.1 BER value for this tag.
*/
Modified: directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncRequestValueContainer.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncRequestValueContainer.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncRequestValueContainer.java (original)
+++ directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncRequestValueContainer.java Tue Jan 24 17:27:00 2012
@@ -82,6 +82,7 @@ public class SyncRequestValueContainer e
this.control = control;
}
+
/**
* Clean the container
*/
Modified: directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncRequestValueDecorator.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncRequestValueDecorator.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncRequestValueDecorator.java (original)
+++ directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncRequestValueDecorator.java Tue Jan 24 17:27:00 2012
@@ -43,7 +43,7 @@ import org.apache.directory.shared.util.
*
* @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
*/
-public class SyncRequestValueDecorator extends ControlDecorator<SyncRequestValue> implements SyncRequestValue
+public class SyncRequestValueDecorator extends ControlDecorator<SyncRequestValue> implements SyncRequestValue
{
/** The global length for this control */
private int syncRequestValueLength;
@@ -157,7 +157,7 @@ public class SyncRequestValueDecorator
syncRequestValueLength += 1 + 1 + 1;
}
- valueLength = 1 + TLV.getNbBytes( syncRequestValueLength ) + syncRequestValueLength;
+ valueLength = 1 + TLV.getNbBytes( syncRequestValueLength ) + syncRequestValueLength;
// Call the super class to compute the global control length
return valueLength;
@@ -184,8 +184,8 @@ public class SyncRequestValueDecorator
buffer.put( TLV.getBytes( syncRequestValueLength ) );
// The mode
- buffer.put( UniversalTag.ENUMERATED.getValue() );
- buffer.put( ( byte )0x01 );
+ buffer.put( UniversalTag.ENUMERATED.getValue() );
+ buffer.put( ( byte ) 0x01 );
buffer.put( Value.getBytes( getMode().getValue() ) );
// The cookie
@@ -222,7 +222,7 @@ public class SyncRequestValueDecorator
buffer.put( TLV.getBytes( syncRequestValueLength ) );
// The mode
- buffer.put( UniversalTag.ENUMERATED.getValue() );
+ buffer.put( UniversalTag.ENUMERATED.getValue() );
buffer.put( ( byte ) 0x01 );
buffer.put( Value.getBytes( getMode().getValue() ) );
Modified: directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncRequestValueFactory.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncRequestValueFactory.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncRequestValueFactory.java (original)
+++ directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncRequestValueFactory.java Tue Jan 24 17:27:00 2012
@@ -35,7 +35,7 @@ public class SyncRequestValueFactory imp
{
/** The codec for this factory */
private LdapApiService codec;
-
+
/**
* Creates a new instance of SyncRequestValueFactory.
@@ -46,7 +46,7 @@ public class SyncRequestValueFactory imp
{
this.codec = codec;
}
-
+
/**
* {@inheritDoc}
@@ -56,7 +56,7 @@ public class SyncRequestValueFactory imp
return SyncRequestValue.OID;
}
-
+
/**
* {@inheritDoc}
*/
@@ -64,7 +64,7 @@ public class SyncRequestValueFactory imp
{
return new SyncRequestValueDecorator( codec );
}
-
+
/**
* {@inheritDoc}
Modified: directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncRequestValueGrammar.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncRequestValueGrammar.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncRequestValueGrammar.java (original)
+++ directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncRequestValueGrammar.java Tue Jan 24 17:27:00 2012
@@ -86,13 +86,12 @@ public final class SyncRequestValueGramm
*
* Initialize the syncRequestValue object
*/
- super.transitions[SyncRequestValueStatesEnum.START_STATE.ordinal()][UniversalTag.SEQUENCE.getValue()] =
- new GrammarTransition( SyncRequestValueStatesEnum.START_STATE,
- SyncRequestValueStatesEnum.SYNC_REQUEST_VALUE_SEQUENCE_STATE,
- UniversalTag.SEQUENCE.getValue(),
+ super.transitions[SyncRequestValueStatesEnum.START_STATE.ordinal()][UniversalTag.SEQUENCE.getValue()] =
+ new GrammarTransition( SyncRequestValueStatesEnum.START_STATE,
+ SyncRequestValueStatesEnum.SYNC_REQUEST_VALUE_SEQUENCE_STATE,
+ UniversalTag.SEQUENCE.getValue(),
null );
-
/**
* Transition from SyncRequestValue sequence to Change types
* SyncRequestValue ::= SEQUENCE OF {
@@ -106,44 +105,44 @@ public final class SyncRequestValueGramm
*
* Stores the mode value
*/
- super.transitions[SyncRequestValueStatesEnum.SYNC_REQUEST_VALUE_SEQUENCE_STATE.ordinal()][UniversalTag.ENUMERATED.getValue()] =
- new GrammarTransition( SyncRequestValueStatesEnum.SYNC_REQUEST_VALUE_SEQUENCE_STATE,
- SyncRequestValueStatesEnum.MODE_STATE,
+ super.transitions[SyncRequestValueStatesEnum.SYNC_REQUEST_VALUE_SEQUENCE_STATE.ordinal()][UniversalTag.ENUMERATED
+ .getValue()] =
+ new GrammarTransition( SyncRequestValueStatesEnum.SYNC_REQUEST_VALUE_SEQUENCE_STATE,
+ SyncRequestValueStatesEnum.MODE_STATE,
UniversalTag.ENUMERATED.getValue(),
new GrammarAction<SyncRequestValueContainer>( "Set SyncRequestValueControl mode" )
- {
- public void action( SyncRequestValueContainer container ) throws DecoderException
{
- Value value = container.getCurrentTLV().getValue();
-
- try
+ public void action( SyncRequestValueContainer container ) throws DecoderException
{
- // Check that the value is into the allowed interval
- int mode = IntegerDecoder.parse( value,
- SynchronizationModeEnum.UNUSED.getValue(),
- SynchronizationModeEnum.REFRESH_AND_PERSIST.getValue() );
-
- SynchronizationModeEnum modeEnum = SynchronizationModeEnum.getSyncMode( mode );
-
- if ( IS_DEBUG )
+ Value value = container.getCurrentTLV().getValue();
+
+ try
{
- LOG.debug( "Mode = " + modeEnum );
- }
+ // Check that the value is into the allowed interval
+ int mode = IntegerDecoder.parse( value,
+ SynchronizationModeEnum.UNUSED.getValue(),
+ SynchronizationModeEnum.REFRESH_AND_PERSIST.getValue() );
+
+ SynchronizationModeEnum modeEnum = SynchronizationModeEnum.getSyncMode( mode );
+
+ if ( IS_DEBUG )
+ {
+ LOG.debug( "Mode = " + modeEnum );
+ }
- container.getSyncRequestValueControl().setMode( modeEnum );
+ container.getSyncRequestValueControl().setMode( modeEnum );
- // We can have an END transition
- container.setGrammarEndAllowed( true );
- }
- catch ( IntegerDecoderException e )
- {
- String msg = I18n.err( I18n.ERR_04028 );
- LOG.error( msg, e );
- throw new DecoderException( msg );
+ // We can have an END transition
+ container.setGrammarEndAllowed( true );
+ }
+ catch ( IntegerDecoderException e )
+ {
+ String msg = I18n.err( I18n.ERR_04028 );
+ LOG.error( msg, e );
+ throw new DecoderException( msg );
+ }
}
- }
- } );
-
+ } );
/**
* Transition from mode to cookie
@@ -154,29 +153,28 @@ public final class SyncRequestValueGramm
*
* Stores the cookie
*/
- super.transitions[SyncRequestValueStatesEnum.MODE_STATE.ordinal()][UniversalTag.OCTET_STRING.getValue()] =
+ super.transitions[SyncRequestValueStatesEnum.MODE_STATE.ordinal()][UniversalTag.OCTET_STRING.getValue()] =
new GrammarTransition( SyncRequestValueStatesEnum.MODE_STATE,
- SyncRequestValueStatesEnum.COOKIE_STATE, UniversalTag.OCTET_STRING.getValue(),
+ SyncRequestValueStatesEnum.COOKIE_STATE, UniversalTag.OCTET_STRING.getValue(),
new GrammarAction<SyncRequestValueContainer>( "Set SyncRequestValueControl cookie" )
- {
- public void action( SyncRequestValueContainer container ) throws DecoderException
{
- Value value = container.getCurrentTLV().getValue();
-
- byte[] cookie = value.getData();
-
- if ( IS_DEBUG )
+ public void action( SyncRequestValueContainer container ) throws DecoderException
{
- LOG.debug( "cookie = " + Strings.dumpBytes(cookie) );
- }
+ Value value = container.getCurrentTLV().getValue();
- container.getSyncRequestValueControl().setCookie( cookie );
+ byte[] cookie = value.getData();
- // We can have an END transition
- container.setGrammarEndAllowed( true );
- }
- } );
+ if ( IS_DEBUG )
+ {
+ LOG.debug( "cookie = " + Strings.dumpBytes( cookie ) );
+ }
+
+ container.getSyncRequestValueControl().setCookie( cookie );
+ // We can have an END transition
+ container.setGrammarEndAllowed( true );
+ }
+ } );
/**
* Transition from mode to reloadHint
@@ -187,38 +185,37 @@ public final class SyncRequestValueGramm
*
* Stores the reloadHint flag
*/
- super.transitions[SyncRequestValueStatesEnum.MODE_STATE.ordinal()][UniversalTag.BOOLEAN.getValue()] =
+ super.transitions[SyncRequestValueStatesEnum.MODE_STATE.ordinal()][UniversalTag.BOOLEAN.getValue()] =
new GrammarTransition( SyncRequestValueStatesEnum.MODE_STATE,
- SyncRequestValueStatesEnum.RELOAD_HINT_STATE, UniversalTag.BOOLEAN.getValue(),
+ SyncRequestValueStatesEnum.RELOAD_HINT_STATE, UniversalTag.BOOLEAN.getValue(),
new GrammarAction<SyncRequestValueContainer>( "Set SyncRequestValueControl reloadHint flag" )
- {
- public void action( SyncRequestValueContainer container ) throws DecoderException
{
- Value value = container.getCurrentTLV().getValue();
-
- try
+ public void action( SyncRequestValueContainer container ) throws DecoderException
{
- boolean reloadHint = BooleanDecoder.parse(value);
+ Value value = container.getCurrentTLV().getValue();
- if ( IS_DEBUG )
+ try
{
- LOG.debug( "reloadHint = " + reloadHint );
- }
+ boolean reloadHint = BooleanDecoder.parse( value );
- container.getSyncRequestValueControl().setReloadHint( reloadHint );
+ if ( IS_DEBUG )
+ {
+ LOG.debug( "reloadHint = " + reloadHint );
+ }
- // We can have an END transition
- container.setGrammarEndAllowed( true );
- }
- catch ( BooleanDecoderException e )
- {
- String msg = I18n.err( I18n.ERR_04029 );
- LOG.error( msg, e );
- throw new DecoderException( msg );
- }
- }
- } );
+ container.getSyncRequestValueControl().setReloadHint( reloadHint );
+ // We can have an END transition
+ container.setGrammarEndAllowed( true );
+ }
+ catch ( BooleanDecoderException e )
+ {
+ String msg = I18n.err( I18n.ERR_04029 );
+ LOG.error( msg, e );
+ throw new DecoderException( msg );
+ }
+ }
+ } );
/**
* Transition from cookie to reloadHint
@@ -229,37 +226,37 @@ public final class SyncRequestValueGramm
*
* Stores the reloadHint flag
*/
- super.transitions[SyncRequestValueStatesEnum.COOKIE_STATE.ordinal()][UniversalTag.BOOLEAN.getValue()] =
+ super.transitions[SyncRequestValueStatesEnum.COOKIE_STATE.ordinal()][UniversalTag.BOOLEAN.getValue()] =
new GrammarTransition( SyncRequestValueStatesEnum.COOKIE_STATE,
- SyncRequestValueStatesEnum.RELOAD_HINT_STATE, UniversalTag.BOOLEAN.getValue(),
+ SyncRequestValueStatesEnum.RELOAD_HINT_STATE, UniversalTag.BOOLEAN.getValue(),
new GrammarAction<SyncRequestValueContainer>( "Set SyncRequestValueControl reloadHint flag" )
- {
- public void action( SyncRequestValueContainer container ) throws DecoderException
{
- Value value = container.getCurrentTLV().getValue();
-
- try
+ public void action( SyncRequestValueContainer container ) throws DecoderException
{
- boolean reloadHint = BooleanDecoder.parse( value );
+ Value value = container.getCurrentTLV().getValue();
- if ( IS_DEBUG )
+ try
{
- LOG.debug( "reloadHint = " + reloadHint );
- }
+ boolean reloadHint = BooleanDecoder.parse( value );
- container.getSyncRequestValueControl().setReloadHint( reloadHint );
+ if ( IS_DEBUG )
+ {
+ LOG.debug( "reloadHint = " + reloadHint );
+ }
- // We can have an END transition
- container.setGrammarEndAllowed( true );
- }
- catch ( BooleanDecoderException e )
- {
- String msg = I18n.err( I18n.ERR_04029 );
- LOG.error( msg, e );
- throw new DecoderException( msg );
+ container.getSyncRequestValueControl().setReloadHint( reloadHint );
+
+ // We can have an END transition
+ container.setGrammarEndAllowed( true );
+ }
+ catch ( BooleanDecoderException e )
+ {
+ String msg = I18n.err( I18n.ERR_04029 );
+ LOG.error( msg, e );
+ throw new DecoderException( msg );
+ }
}
- }
- } );
+ } );
}
Modified: directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncRequestValueStatesEnum.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncRequestValueStatesEnum.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncRequestValueStatesEnum.java (original)
+++ directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncRequestValueStatesEnum.java Tue Jan 24 17:27:00 2012
@@ -49,7 +49,7 @@ public enum SyncRequestValueStatesEnum i
/** mode Value */
MODE_STATE,
-
+
/** cookie Value */
COOKIE_STATE,
@@ -99,7 +99,7 @@ public enum SyncRequestValueStatesEnum i
return ( ( state == END_STATE.ordinal() ) ? "SYNC_REQUEST_VALUE_END_STATE" : this.name() );
}
-
+
/**
* {@inheritDoc}
*/
@@ -107,8 +107,8 @@ public enum SyncRequestValueStatesEnum i
{
return this == END_STATE;
}
-
-
+
+
/**
* {@inheritDoc}
*/
Modified: directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncStateValueContainer.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncStateValueContainer.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncStateValueContainer.java (original)
+++ directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncStateValueContainer.java Tue Jan 24 17:27:00 2012
@@ -82,6 +82,7 @@ public class SyncStateValueContainer ext
this.control = control;
}
+
/**
* Clean the container
*/
Modified: directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncStateValueFactory.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncStateValueFactory.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncStateValueFactory.java (original)
+++ directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncStateValueFactory.java Tue Jan 24 17:27:00 2012
@@ -35,7 +35,7 @@ public class SyncStateValueFactory imple
{
/** The codec for this factory */
private LdapApiService codec;
-
+
/**
* Creates a new instance of SyncStateValueFactory.
@@ -46,7 +46,7 @@ public class SyncStateValueFactory imple
{
this.codec = codec;
}
-
+
/**
* {@inheritDoc}
@@ -56,7 +56,7 @@ public class SyncStateValueFactory imple
return SyncStateValue.OID;
}
-
+
/**
* {@inheritDoc}
*/
@@ -64,7 +64,7 @@ public class SyncStateValueFactory imple
{
return new SyncStateValueDecorator( codec );
}
-
+
/**
* {@inheritDoc}