|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimple.http.Pipeline
simple.http.FilterPipeline
public class FilterPipeline
This is a FilterPipeline
object that is used to wrap
the Pipeline
it is given. This contains methods that
act as proxies to the given Pipeline
The FilterPipeline
enables the Pipeline
to be subclassed easily. Subclasses may want to implement buffering
or security features to the Pipeline
's that it uses.
The PipelineFactory
can produce these implementations
to be processed with the PipelineHandler
.
Field Summary | |
---|---|
protected Pipeline |
pipe
This is the Pipeline that is wrapped. |
Fields inherited from class simple.http.Pipeline |
---|
sock, table |
Constructor Summary | |
---|---|
protected |
FilterPipeline()
/** This constructor allows the FilterPipeline to be
extended in such a way that it does not do any initialization
of the object itself. |
|
FilterPipeline(Pipeline pipe)
This wraps the Pipeline given. |
Method Summary | |
---|---|
void |
close()
This is a close method that ensures the communication link is shutdown. |
java.lang.Object |
get(java.lang.String name)
The get method is used to retrieve the value
mapped to the specified name. |
java.net.InetAddress |
getInetAddress()
This corresponds to the identity of the host that created the connection. |
java.io.InputStream |
getInputStream()
Retrieves the InputStream . |
java.io.OutputStream |
getOutputStream()
Retrieves the OutputStream . |
java.util.Set |
keySet()
To ascertain what mappings exist, the names of all values previously put into this attributes can be retrieved with this method. |
void |
put(java.lang.String name,
java.lang.Object value)
The put method is used to insert a mapping to
the attributes that pairs the issued name with the issued
value. |
void |
remove(java.lang.String name)
The remove method is used to remove the
named value from the attributes. |
Methods inherited from class simple.http.Pipeline |
---|
contains |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Pipeline pipe
Pipeline
that is wrapped.
Constructor Detail |
---|
protected FilterPipeline()
FilterPipeline
to be
extended in such a way that it does not do any initialization
of the object itself. This is used if there is no need for a
Socket
or Hashtable
reference.
This is used by the Poller
object.
public FilterPipeline(Pipeline pipe) throws java.io.IOException
Pipeline
given. This will contain
the same Socket
object as the Pipeline
it is given. Any sub classes of the Pipeline
may
use this to enable it to attach some extra functionality to the
Pipeline
like buffering or security.
pipe
- the Pipeline
that is being wrapped
java.io.IOException
- if the object could not be createdMethod Detail |
---|
public java.io.InputStream getInputStream() throws java.io.IOException
InputStream
. This is a communication
channel between the client and the server. The stream returned
is the same as the Pipeline.getInputStream
.
getInputStream
in class Pipeline
InputStream
from the client, i.e. the
Pipeline
java.io.IOException
- thrown if there is an I/O problem.public java.io.OutputStream getOutputStream() throws java.io.IOException
OutputStream
. This is a communication
channel from the server to the client. The stream returned is
the same as the Pipeline.getOuputStream
.
getOutputStream
in class Pipeline
OutputStream
to the client, i.e. the
Pipeline
java.io.IOException
- thrown if there is an I/O problempublic java.net.InetAddress getInetAddress()
getInetAddress
in class Pipeline
public void put(java.lang.String name, java.lang.Object value)
put
method is used to insert a mapping to
the attributes that pairs the issued name with the issued
value. The value can be referenced in future by its name.
put
in interface Attributes
put
in class Pipeline
name
- this is the name of the value being insertedvalue
- this is the named value that is insertedpublic java.lang.Object get(java.lang.String name)
get
method is used to retrieve the value
mapped to the specified name. If a value does not exist
matching the given name, then this returns null.
get
in interface Attributes
get
in class Pipeline
name
- this is the name of the value to be retrieved
public void remove(java.lang.String name)
remove
method is used to remove the
named value from the attributes. This method will remove
the value or returns silently if the name does not exits.
remove
in interface Attributes
remove
in class Pipeline
name
- this is the name of the value to be removedpublic java.util.Set keySet()
Set
that
contains the names of all the mappings added to this.
keySet
in interface Attributes
keySet
in class Pipeline
public void close()
InputStream
and the
OutputStream
of the Pipeline
. This
method will not propagate any exceptions.
close
in class Pipeline
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |