org.glassfish.grizzly.http
Interface MimeHeadersPacket

All Known Implementing Classes:
HttpHeader, HttpRequestPacket, HttpResponsePacket, HttpTrailer

public interface MimeHeadersPacket

Common interface for HttpPackets, which contain mimeheaders.

Author:
Alexey Stashok

Method Summary
 void addHeader(String name, String value)
          Add the HTTP mime header.
 boolean containsHeader(String name)
          Returns true, if the mime header with the specific name is present among the HttpHeader mime headers, or false otherwise.
 String getHeader(String name)
          Get the value, of the specific HTTP mime header.
 MimeHeaders getHeaders()
          Get all MimeHeaders, associated with the HttpHeader.
 void setHeader(String name, String value)
          Set the value, of the specific HTTP mime header.
 

Method Detail

getHeaders

MimeHeaders getHeaders()
Get all MimeHeaders, associated with the HttpHeader.

Returns:
all MimeHeaders, associated with the HttpHeader.

getHeader

String getHeader(String name)
Get the value, of the specific HTTP mime header.

Parameters:
name - the mime header name.
Returns:
the value, of the specific HTTP mime header.

setHeader

void setHeader(String name,
               String value)
Set the value, of the specific HTTP mime header.

Parameters:
name - the mime header name.
value - the mime header value.

addHeader

void addHeader(String name,
               String value)
Add the HTTP mime header.

Parameters:
name - the mime header name.
value - the mime header value.

containsHeader

boolean containsHeader(String name)
Returns true, if the mime header with the specific name is present among the HttpHeader mime headers, or false otherwise.

Parameters:
name - the mime header name.
Returns:
true, if the mime header with the specific name is present among the HttpHeader mime headers, or false otherwise.


Copyright © 2010 Oracle Corpration. All Rights Reserved.