FileDocCategorySizeDatePackage
Request.javaAPI DocJMF 2.1.1e1174Mon May 12 12:20:54 BST 2003com.sun.media.rtsp.protocol

Request

public class Request extends Parser

Fields Summary
public RequestLine
requestLine
public Vector
headers
Constructors Summary
public Request(ByteArrayInputStream bin)

        String line = getLine(bin);

        requestLine = new RequestLine(line);

        headers = new Vector();

        line = getLine(bin);

        while (line.length() > 0) {
            if (line.length() > 0) {
                Header header = new Header(line);

                headers.addElement(header);

                line = getLine(bin);
            }
        }
    
Methods Summary
public com.sun.media.rtsp.protocol.HeadergetHeader(int type)

        Header header = null;

        for (int i = 0; i < headers.size(); i++) {
            Header tmpHeader = (Header) headers.elementAt(i);

            if (tmpHeader.type == type) {
                header = tmpHeader;

                break;
            }
        }

        return header;
    
public com.sun.media.rtsp.protocol.RequestLinegetRequestLine()

        return requestLine;