Java Code Examples for org.apache.qpid.proton.codec.EncoderImpl#register()

The following examples show how to use org.apache.qpid.proton.codec.EncoderImpl#register() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AmqpValueType.java    From qpid-proton-j with Apache License 2.0 5 votes vote down vote up
public static void register(Decoder decoder, EncoderImpl encoder)
{
    AmqpValueType type = new AmqpValueType(encoder);
    for(Object descriptor : DESCRIPTORS)
    {
        decoder.register(descriptor, type);
    }
    encoder.register(type);
}
 
Example 2
Source File: EndType.java    From qpid-proton-j with Apache License 2.0 5 votes vote down vote up
public static void register(Decoder decoder, EncoderImpl encoder)
{
    EndType type = new EndType(encoder);
    for(Object descriptor : DESCRIPTORS)
    {
        decoder.register(descriptor, type);
    }
    encoder.register(type);
}
 
Example 3
Source File: DeleteOnNoLinksOrMessagesType.java    From qpid-proton-j with Apache License 2.0 5 votes vote down vote up
public static void register(Decoder decoder, EncoderImpl encoder)
{
    DeleteOnNoLinksOrMessagesType type = new DeleteOnNoLinksOrMessagesType(encoder);
    for(Object descriptor : DESCRIPTORS)
    {
        decoder.register(descriptor, type);
    }
    encoder.register(type);
}
 
Example 4
Source File: DetachType.java    From qpid-proton-j with Apache License 2.0 5 votes vote down vote up
public static void register(Decoder decoder, EncoderImpl encoder)
{
    DetachType type = new DetachType(encoder);
    for(Object descriptor : DESCRIPTORS)
    {
        decoder.register(descriptor, type);
    }
    encoder.register(type);
}
 
Example 5
Source File: AcceptedType.java    From qpid-proton-j with Apache License 2.0 5 votes vote down vote up
public static void register(Decoder decoder, EncoderImpl encoder)
{
    AcceptedType type = new AcceptedType(encoder);
    for(Object descriptor : DESCRIPTORS)
    {
        decoder.register(descriptor, type);
    }
    encoder.register(type);
}
 
Example 6
Source File: TransferType.java    From qpid-proton-j with Apache License 2.0 5 votes vote down vote up
public static void register(Decoder decoder, EncoderImpl encoder)
{
    TransferType type = new TransferType(encoder);
    for(Object descriptor : DESCRIPTORS)
    {
        decoder.register(descriptor, type);
    }
    encoder.register(type);
}
 
Example 7
Source File: RejectedType.java    From qpid-proton-j with Apache License 2.0 5 votes vote down vote up
public static void register(Decoder decoder, EncoderImpl encoder)
{
    RejectedType type = new RejectedType(encoder);
    for(Object descriptor : DESCRIPTORS)
    {
        decoder.register(descriptor, type);
    }
    encoder.register(type);
}
 
Example 8
Source File: HeaderType.java    From qpid-proton-j with Apache License 2.0 5 votes vote down vote up
public static void register(Decoder decoder, EncoderImpl encoder)
{
    HeaderType type = new HeaderType(encoder);
    for(Object descriptor : DESCRIPTORS)
    {
        decoder.register(descriptor, type);
    }
    encoder.register(type);
}
 
Example 9
Source File: FlowType.java    From qpid-proton-j with Apache License 2.0 5 votes vote down vote up
public static void register(Decoder decoder, EncoderImpl encoder)
{
    FlowType type = new FlowType(encoder);
    for(Object descriptor : DESCRIPTORS)
    {
        decoder.register(descriptor, type);
    }
    encoder.register(type);
}
 
Example 10
Source File: TargetType.java    From qpid-proton-j with Apache License 2.0 5 votes vote down vote up
public static void register(Decoder decoder, EncoderImpl encoder)
{
    TargetType type = new TargetType(encoder);
    for(Object descriptor : DESCRIPTORS)
    {
        decoder.register(descriptor, type);
    }
    encoder.register(type);
}
 
Example 11
Source File: AmqpSequenceType.java    From qpid-proton-j with Apache License 2.0 5 votes vote down vote up
public static void register(Decoder decoder, EncoderImpl encoder)
{
    AmqpSequenceType type = new AmqpSequenceType(encoder);
    for(Object descriptor : DESCRIPTORS)
    {
        decoder.register(descriptor, type);
    }
    encoder.register(type);
}
 
Example 12
Source File: DeclaredType.java    From qpid-proton-j with Apache License 2.0 5 votes vote down vote up
public static void register(Decoder decoder, EncoderImpl encoder)
{
    DeclaredType type = new DeclaredType(encoder);
    for(Object descriptor : DESCRIPTORS)
    {
        decoder.register(descriptor, type);
    }
    encoder.register(type);
}
 
Example 13
Source File: FastPathDeliveryAnnotationsType.java    From qpid-proton-j with Apache License 2.0 5 votes vote down vote up
public static void register(Decoder decoder, EncoderImpl encoder) {
    FastPathDeliveryAnnotationsType type = new FastPathDeliveryAnnotationsType(encoder);
    for(Object descriptor : DESCRIPTORS) {
        decoder.register(descriptor, type);
    }
    encoder.register(type);
}
 
Example 14
Source File: DeleteOnNoMessagesType.java    From qpid-proton-j with Apache License 2.0 5 votes vote down vote up
public static void register(Decoder decoder, EncoderImpl encoder)
{
    DeleteOnNoMessagesType type = new DeleteOnNoMessagesType(encoder);
    for(Object descriptor : DESCRIPTORS)
    {
        decoder.register(descriptor, type);
    }
    encoder.register(type);
}
 
Example 15
Source File: MessageAnnotationsType.java    From qpid-proton-j with Apache License 2.0 5 votes vote down vote up
public static void register(Decoder decoder, EncoderImpl encoder)
{
    MessageAnnotationsType constructor = new MessageAnnotationsType(encoder);
    for(Object descriptor : DESCRIPTORS)
    {
        decoder.register(descriptor, constructor);
    }
    encoder.register(constructor);
}
 
Example 16
Source File: SourceType.java    From qpid-proton-j with Apache License 2.0 5 votes vote down vote up
public static void register(Decoder decoder, EncoderImpl encoder)
{
    SourceType type = new SourceType(encoder);
    for(Object descriptor : DESCRIPTORS)
    {
        decoder.register(descriptor, type);
    }
    encoder.register(type);
}
 
Example 17
Source File: ApplicationPropertiesType.java    From qpid-proton-j with Apache License 2.0 5 votes vote down vote up
public static void register(Decoder decoder, EncoderImpl encoder)
{
    ApplicationPropertiesType type = new ApplicationPropertiesType(encoder);
    for(Object descriptor : DESCRIPTORS)
    {
        decoder.register(descriptor, type);
    }
    encoder.register(type);
}
 
Example 18
Source File: SaslInitType.java    From qpid-proton-j with Apache License 2.0 5 votes vote down vote up
public static void register(Decoder decoder, EncoderImpl encoder)
{
    SaslInitType type = new SaslInitType(encoder);
    for(Object descriptor : DESCRIPTORS)
    {
        decoder.register(descriptor, type);
    }
    encoder.register(type);
}
 
Example 19
Source File: SaslResponseType.java    From qpid-proton-j with Apache License 2.0 5 votes vote down vote up
public static void register(Decoder decoder, EncoderImpl encoder)
{
    SaslResponseType type = new SaslResponseType(encoder);
    for(Object descriptor : DESCRIPTORS)
    {
        decoder.register(descriptor, type);
    }
    encoder.register(type);
}
 
Example 20
Source File: SaslOutcomeType.java    From qpid-proton-j with Apache License 2.0 5 votes vote down vote up
public static void register(Decoder decoder, EncoderImpl encoder)
{
    SaslOutcomeType type = new SaslOutcomeType(encoder);
    for(Object descriptor : DESCRIPTORS)
    {
        decoder.register(descriptor, type);
    }
    encoder.register(type);
}