Top Description Constructors Methods
org.apache.http.protocol

public Class SyncBasicHttpContext

extends BasicHttpContext
Class Inheritance
Annotations
@Deprecated

Deprecated

(4.2) HttpContext instances may not be shared by multiple threads

Thread-safe extension of the BasicHttpContext.
Since
4.0

Constructor Summary

AccessConstructor and Description
public
SyncBasicHttpContext(final HttpContext parentContext)

public

Method Summary

Modifier and TypeMethod and Description
public synchronized void
public synchronized Object
getAttribute(final String
the attribute name.
id
)

Overrides org.apache.http.protocol.BasicHttpContext.getAttribute.

Implements org.apache.http.protocol.HttpContext.getAttribute.

Obtains attribute with the given name.
public synchronized Object
removeAttribute(final String
the attribute name.
id
)

Overrides org.apache.http.protocol.BasicHttpContext.removeAttribute.

Implements org.apache.http.protocol.HttpContext.removeAttribute.

Removes attribute with the given name from the context.
public synchronized void
setAttribute(final String
the attribute name.
id
,
final Object
the attribute value.
obj
)

Overrides org.apache.http.protocol.BasicHttpContext.setAttribute.

Implements org.apache.http.protocol.HttpContext.setAttribute.

Sets value of the attribute with the given name.
Inherited from org.apache.http.protocol.BasicHttpContext:
toString

Constructor Detail

SyncBasicHttpContextback to summary
public SyncBasicHttpContext(final HttpContext parentContext)
SyncBasicHttpContextback to summary
public SyncBasicHttpContext()
Since
4.2

Method Detail

clearback to summary
public synchronized void clear()

Overrides org.apache.http.protocol.BasicHttpContext.clear.

Annotations
@Override
Since
4.2
getAttributeback to summary
public synchronized Object getAttribute(final String id)

Overrides org.apache.http.protocol.BasicHttpContext.getAttribute.

Implements org.apache.http.protocol.HttpContext.getAttribute.

Doc from org.apache.http.protocol.HttpContext.getAttribute.

Obtains attribute with the given name.

Parameters
id:String

the attribute name.

Returns:Object

attribute value, or null if not set.

Annotations
@Override
removeAttributeback to summary
public synchronized Object removeAttribute(final String id)

Overrides org.apache.http.protocol.BasicHttpContext.removeAttribute.

Implements org.apache.http.protocol.HttpContext.removeAttribute.

Doc from org.apache.http.protocol.HttpContext.removeAttribute.

Removes attribute with the given name from the context.

Parameters
id:String

the attribute name.

Returns:Object

attribute value, or null if not set.

Annotations
@Override
setAttributeback to summary
public synchronized void setAttribute(final String id, final Object obj)

Overrides org.apache.http.protocol.BasicHttpContext.setAttribute.

Implements org.apache.http.protocol.HttpContext.setAttribute.

Doc from org.apache.http.protocol.HttpContext.setAttribute.

Sets value of the attribute with the given name.

Parameters
id:String

the attribute name.

obj:Object

the attribute value.

Annotations
@Override