cybergarage-upnp
org.cybergarage.http.HTTPSocket Class Reference

Public Member Functions

 HTTPSocket (Socket socket)
 
 HTTPSocket (HTTPSocket socket)
 
void finalize ()
 
Socket getSocket ()
 
String getLocalAddress ()
 
int getLocalPort ()
 
InputStream getInputStream ()
 
boolean open ()
 
boolean close ()
 
boolean post (HTTPResponse httpRes, long contentOffset, long contentLength, boolean isOnlyHeader)
 

Private Member Functions

void setSocket (Socket socket)
 
void setInputStream (InputStream in)
 
void setOutputStream (OutputStream out)
 
OutputStream getOutputStream ()
 
boolean post (HTTPResponse httpRes, byte content[], long contentOffset, long contentLength, boolean isOnlyHeader)
 
boolean post (HTTPResponse httpRes, InputStream in, long contentOffset, long contentLength, boolean isOnlyHeader)
 

Private Attributes

Socket socket = null
 
InputStream sockIn = null
 
OutputStream sockOut = null
 

Constructor & Destructor Documentation

◆ HTTPSocket() [1/2]

org.cybergarage.http.HTTPSocket.HTTPSocket ( Socket socket)
inline

◆ HTTPSocket() [2/2]

org.cybergarage.http.HTTPSocket.HTTPSocket ( HTTPSocket socket)
inline

Member Function Documentation

◆ close()

boolean org.cybergarage.http.HTTPSocket.close ( )
inline

◆ finalize()

void org.cybergarage.http.HTTPSocket.finalize ( )
inline

◆ getInputStream()

InputStream org.cybergarage.http.HTTPSocket.getInputStream ( )
inline

◆ getLocalAddress()

String org.cybergarage.http.HTTPSocket.getLocalAddress ( )
inline

◆ getLocalPort()

int org.cybergarage.http.HTTPSocket.getLocalPort ( )
inline

◆ getOutputStream()

OutputStream org.cybergarage.http.HTTPSocket.getOutputStream ( )
inlineprivate

◆ getSocket()

Socket org.cybergarage.http.HTTPSocket.getSocket ( )
inline

◆ open()

boolean org.cybergarage.http.HTTPSocket.open ( )
inline

◆ post() [1/3]

boolean org.cybergarage.http.HTTPSocket.post ( HTTPResponse httpRes,
byte content[],
long contentOffset,
long contentLength,
boolean isOnlyHeader )
inlineprivate

◆ post() [2/3]

boolean org.cybergarage.http.HTTPSocket.post ( HTTPResponse httpRes,
InputStream in,
long contentOffset,
long contentLength,
boolean isOnlyHeader )
inlineprivate

◆ post() [3/3]

boolean org.cybergarage.http.HTTPSocket.post ( HTTPResponse httpRes,
long contentOffset,
long contentLength,
boolean isOnlyHeader )
inline

◆ setInputStream()

void org.cybergarage.http.HTTPSocket.setInputStream ( InputStream in)
inlineprivate

◆ setOutputStream()

void org.cybergarage.http.HTTPSocket.setOutputStream ( OutputStream out)
inlineprivate

◆ setSocket()

void org.cybergarage.http.HTTPSocket.setSocket ( Socket socket)
inlineprivate

Field Documentation

◆ socket

Socket org.cybergarage.http.HTTPSocket.socket = null
private

◆ sockIn

InputStream org.cybergarage.http.HTTPSocket.sockIn = null
private

◆ sockOut

OutputStream org.cybergarage.http.HTTPSocket.sockOut = null
private

The documentation for this class was generated from the following file: