org.apache.http
Interface NameValuePair

All Known Subinterfaces:
FormattedHeader, Header
All Known Implementing Classes:
BasicHeader, BasicNameValuePair, BufferedHeader

public interface NameValuePair

A name-value pair parameter used as an element of HTTP messages.

 parameter               = attribute "=" value
 attribute               = token
 value                   = token | quoted-string
 

Since:
4.0

Method Summary
 String getName()
          Gets the name of this pair.
 String getValue()
          Gets the value of this pair.
 

Method Detail

getName

String getName()
Gets the name of this pair.

Returns:
the name of this pair, never null.

getValue

String getValue()
Gets the value of this pair.

Returns:
the value of this pair, may be null.


Copyright © 2005–2019 The Apache Software Foundation. All rights reserved.