org.glassfish.grizzly.http
Interface MimeHeadersPacket

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

public interface MimeHeadersPacket

Common interface for HttpPackets, which contain mimeheaders.

Author:
Alexey Stashok

Method Summary
 void addHeader(Header header, String value)
          Add the HTTP mime header.
 void addHeader(String name, String value)
          Add the HTTP mime header.
 boolean containsHeader(Header header)
          Returns true, if the mime Header is present among the HttpHeader mime headers, otherwise returns false.
 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(Header header)
          Get the value, of the specific HTTP mime header.
 String getHeader(String name)
          Get the value, of the specific HTTP mime header.
 MimeHeaders getHeaders()
          Get all MimeHeaders, associated with the HttpHeader.
 void setHeader(Header header, String value)
          Set the value, of the specific HTTP mime header.
 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.

getHeader

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

Parameters:
header - the mime Header
Returns:
the value, of the specific HTTP mime header.
Since:
2.1.2

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.

setHeader

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

Parameters:
header - the mime Header.
value - the mime header value.
Since:
2.1.2

addHeader

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

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

addHeader

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

Parameters:
header - the mime Header.
value - the mime header value.
Since:
2.1.2

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.

containsHeader

boolean containsHeader(Header header)
Returns true, if the mime Header is present among the HttpHeader mime headers, otherwise returns false.

Parameters:
header - the mime Header.
Returns:
true, if the mime Header is present among the HttpHeader mime headers, otherwise returns false.
Since:
2.1.2


Copyright © 2013 Oracle Corporation. All Rights Reserved.