Top Description Fields Constructors Methods
org.glassfish.grizzly.servlet

public Class WebConnectionImpl

extends Object
implements WebConnection
Class Inheritance
All Implemented Interfaces
jakarta.servlet.http.WebConnection, java.lang.AutoCloseable
Imports
java.io.IOException, java.util.concurrent.atomic.AtomicBoolean, org.glassfish.grizzly.http.server.Request, jakarta.servlet.ServletInputStream, .ServletOutputStream, jakarta.servlet.http.HttpUpgradeHandler, .WebConnection

Implementation of WebConnection for Servlet 3.1
Authors
Amy Roh, Shing Wai Chan
Version
$Revision: 1.23 $ $Date: 2007/07/09 20:46:45 $

Field Summary

Modifier and TypeField and Description
private final ServletInputStream
private final AtomicBoolean
private final ServletOutputStream
private final HttpServletRequestImpl

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
close()

Implements java.lang.AutoCloseable.close.

Closes this resource, relinquishing any underlying resources.

public ServletInputStream

Returns:

a ServletInputStream for reading binary data
getInputStream
()

Implements jakarta.servlet.http.WebConnection.getInputStream.

Returns an input stream for this web connection.

public ServletOutputStream

Returns:

a ServletOutputStream for writing binary data
getOutputStream
()

Implements jakarta.servlet.http.WebConnection.getOutputStream.

Returns an output stream for this web connection.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

inputStreamback to summary
private final ServletInputStream inputStream
isClosedback to summary
private final AtomicBoolean isClosed
outputStreamback to summary
private final ServletOutputStream outputStream
requestback to summary
private final HttpServletRequestImpl request

Constructor Detail

WebConnectionImplback to summary
public WebConnectionImpl(HttpServletRequestImpl request, ServletInputStream inputStream, ServletOutputStream outputStream)

Method Detail

closeback to summary
public void close() throws Exception

Implements java.lang.AutoCloseable.close.

Doc from java.lang.AutoCloseable.close.

Closes this resource, relinquishing any underlying resources. This method is invoked automatically on objects managed by the try-with-resources statement.

Annotations
@Override
Exceptions
Exception:
if this resource cannot be closed
getInputStreamback to summary
public ServletInputStream getInputStream() throws IOException

Implements jakarta.servlet.http.WebConnection.getInputStream.

Returns an input stream for this web connection.

Returns:ServletInputStream

a ServletInputStream for reading binary data

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs
getOutputStreamback to summary
public ServletOutputStream getOutputStream() throws IOException

Implements jakarta.servlet.http.WebConnection.getOutputStream.

Returns an output stream for this web connection.

Returns:ServletOutputStream

a ServletOutputStream for writing binary data

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs