Top Fields Constructors Methods
bsh.util

pack-priv Class HttpdConnection

Located in compilation unit of bsh.util.Httpd.

extends Thread
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv Socket
pack-priv BufferedReader
pack-priv boolean
pack-priv OutputStream
pack-priv PrintStream
Inherited from java.lang.Thread:
MAX_PRIORITYMIN_PRIORITYNORM_PRIORITY

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private void
error(int num, String s)

public void
run()

Overrides java.lang.Thread.run.

Implements java.lang.Runnable.run.

This method is run by the thread when it executes.
private void
private void
Inherited from java.lang.Thread:
activeCountcheckAccessclonecountStackFramescurrentThreaddumpStackenumerategetAllStackTracesgetContextClassLoadergetDefaultUncaughtExceptionHandlergetIdgetNamegetPrioritygetStackTracegetStategetThreadGroupgetUncaughtExceptionHandlerholdsLockinterruptinterruptedisAliveisDaemonisInterruptedisVirtualjoinjoinjoinjoinofPlatformofVirtualonSpinWaitresumesetContextClassLoadersetDaemonsetDefaultUncaughtExceptionHandlersetNamesetPrioritysetUncaughtExceptionHandlersleepsleepsleepstartstartVirtualThreadstopsuspendthreadIdtoStringyield

Field Detail

clientback to summary
pack-priv Socket client
inback to summary
pack-priv BufferedReader in
isHttp1back to summary
pack-priv boolean isHttp1
outback to summary
pack-priv OutputStream out
poutback to summary
pack-priv PrintStream pout

Constructor Detail

HttpdConnectionback to summary
pack-priv HttpdConnection(Socket client)

Method Detail

errorback to summary
private void error(int num, String s)
runback to summary
public void run()

Overrides java.lang.Thread.run.

Implements java.lang.Runnable.run.

Doc from java.lang.Thread.run.

This method is run by the thread when it executes. Subclasses of Thread may override this method.

This method is not intended to be invoked directly. If this thread is a platform thread created with a Runnable task then invoking this method will invoke the task's run method. If this thread is a virtual thread then invoking this method directly does nothing.

sendFileDataback to summary
private void sendFileData(String file) throws IOException, FileNotFoundException
serveFileback to summary
private void serveFile(String file) throws FileNotFoundException, IOException