org.apache.xmlrpc

Class WebServer.Connection

class WebServer.Connection extends Object implements Runnable

Field Summary
byte[]buffer
BufferedInputStreaminput
BufferedOutputStreamoutput
Stringpassword
Socketsocket
Stringuser
Constructor Summary
Connection(Socket socket)
Method Summary
voidparseAuth(String line)
StringreadLine()
voidrun()
voidwriteBadRequest(String httpVersion, String httpMethod)
voidwriteResponse(byte[] payload, String httpVersion, boolean keepAlive)
voidwriteUnauthorized(String httpVersion, String httpMethod)

Field Detail

buffer

byte[] buffer

input

private BufferedInputStream input

output

private BufferedOutputStream output

password

private String password

socket

private Socket socket

user

private String user

Constructor Detail

Connection

public Connection(Socket socket)

Parameters: socket

Throws: IOException

Method Detail

parseAuth

private void parseAuth(String line)

Parameters: line

readLine

private String readLine()

Returns:

Throws: IOException

run

public void run()

writeBadRequest

private void writeBadRequest(String httpVersion, String httpMethod)

writeResponse

private void writeResponse(byte[] payload, String httpVersion, boolean keepAlive)

writeUnauthorized

private void writeUnauthorized(String httpVersion, String httpMethod)
Copyright B) 1999-2002 Apache Software Foundation. All Rights Reserved.