org.apache.xmlrpc

Class WebServer.Connection

Enclosing Class:
WebServer
Implemented Interfaces:
Runnable

(package private) class WebServer.Connection
extends java.lang.Object
implements Runnable

Field Summary

(package private) byte[]
buffer
private BufferedInputStream
input
private BufferedOutputStream
output
private String
password
private Socket
socket
private String
user

Constructor Summary

Connection(Socket socket)

Method Summary

private void
parseAuth(String line)
private String
readLine()
void
run()
private void
writeBadRequest(String httpVersion, String httpMethod)
private void
writeResponse(byte[] payload, String httpVersion, boolean keepAlive)
private void
writeUnauthorized(String httpVersion, String httpMethod)

Field Details

buffer

(package private)  byte[] buffer

input

private BufferedInputStream input

output

private BufferedOutputStream output

password

private String password

socket

private Socket socket

user

private String user

Constructor Details

Connection

public Connection(Socket socket)
            throws IOException
Parameters:
socket -

Method Details

parseAuth

private void parseAuth(String line)
Parameters:
line -

readLine

private String readLine()
            throws IOException
Returns:

run

public void run()

writeBadRequest

private void writeBadRequest(String httpVersion,
                             String httpMethod)
            throws IOException

writeResponse

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

writeUnauthorized

private void writeUnauthorized(String httpVersion,
                               String httpMethod)
            throws IOException

Copyright B) 1999-2002 Apache Software Foundation. All Rights Reserved.