FileDocCategorySizeDatePackage
FrameType.javaAPI DocExample3008Tue May 29 16:57:14 BST 2007com.sun.xml.ws.transport.tcp.util

FrameType

public final class FrameType extends Object
author
Alexey Stashok

Fields Summary
public static final int
MESSAGE
public static final int
MESSAGE_START_CHUNK
public static final int
MESSAGE_CHUNK
public static final int
MESSAGE_END_CHUNK
public static final int
ERROR
public static final int
NULL
private static final Set
typesContainParameters
Constructors Summary
Methods Summary
public static booleanisFrameContainsParams(int msgId)

    
     
        typesContainParameters = new HashSet<Integer>();
        typesContainParameters.add(MESSAGE);
        typesContainParameters.add(MESSAGE_START_CHUNK);
    
        return typesContainParameters.contains(msgId);
    
public static booleanisLastFrame(int msgId)

        return msgId == MESSAGE || msgId == MESSAGE_END_CHUNK || 
                msgId == ERROR || msgId == NULL;