@Override
    public WsByteBuffer[] marshallLine() {
        WsByteBuffer[] firstLine = new WsByteBuffer[1];
        firstLine[0] = allocateBuffer(getOutgoingBufferSize());

        firstLine = putBytes(this.myMethod.getByteArray(), firstLine);
        firstLine = putByte(SPACE, firstLine);
        firstLine = putBytes(getMarshalledSecondToken(), firstLine);
        firstLine = putByte(SPACE, firstLine);
        firstLine = putBytes(getVersionValue().getByteArray(), firstLine);
        firstLine = putBytes(BNFHeaders.EOL, firstLine);
        // don't flip the last buffer as headers get tacked on the end
        if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
            String url = GenericUtils.nullOutPasswords(getMarshalledSecondToken(), (byte) '&');
            Tr.event(tc, "Marshalling first line: " + getMethod() + " " + url + " " + getVersion());
        }
        return firstLine;
    }
@ Override public WsByteBuffer [ ] marshallLine ( ) { WsByteBuffer [ ] firstLine = new WsByteBuffer [ 1 ] ; firstLine [ 0 ] = allocateBuffer ( getOutgoingBufferSize ( ) ) ; firstLine = putBytes ( this . myMethod . getByteArray ( ) , firstLine ) ; firstLine = putByte ( SPACE , firstLine ) ; firstLine = putBytes ( getMarshalledSecondToken ( ) , firstLine ) ; firstLine = putByte ( SPACE , firstLine ) ; firstLine = putBytes ( getVersionValue ( ) . getByteArray ( ) , firstLine ) ; firstLine = putBytes ( BNFHeaders . EOL , firstLine ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { String url = GenericUtils . nullOutPasswords ( getMarshalledSecondToken ( ) , ( byte ) '&' ) ; Tr . event ( tc , "Marshalling first line: " + getMethod ( ) + " " + url + " " + getVersion ( ) ) ; } return firstLine ; }
/*
@see com.ibm.ws.genericbnf.internal.GenericMessageImpl#marshallLine()