Package akka.http.scaladsl.model.headers
Class HttpChallenge
- java.lang.Object
-
- akka.http.javadsl.model.headers.HttpChallenge
-
- akka.http.scaladsl.model.headers.HttpChallenge
-
- All Implemented Interfaces:
Renderable
,ToStringRenderable
,ValueRenderable
,java.io.Serializable
,scala.Equals
,scala.Product
public final class HttpChallenge extends HttpChallenge implements ValueRenderable, scala.Product, java.io.Serializable
Note: the token of challenge is stored in the params Map as a parameter whose name is empty String("") for binary compatibility, but it will be parsed and rendered correctly.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HttpChallenge(java.lang.String scheme, java.lang.String realm, scala.collection.immutable.Map<java.lang.String,java.lang.String> params)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HttpChallenge
apply(java.lang.String scheme, scala.Option<java.lang.String> realm)
static HttpChallenge
apply(java.lang.String scheme, scala.Option<java.lang.String> realm, scala.collection.immutable.Map<java.lang.String,java.lang.String> params)
java.util.Map<java.lang.String,java.lang.String>
getParams()
Java APIscala.collection.immutable.Map<java.lang.String,java.lang.String>
params()
java.lang.String
realm()
<R extends Rendering>
Renderingrender(R r)
java.lang.String
scheme()
static java.lang.String
toString()
-
Methods inherited from class akka.http.javadsl.model.headers.HttpChallenge
create, create, create, create, createBasic, createOAuth2
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
-
Methods inherited from interface akka.http.impl.util.ToStringRenderable
toString
-
Methods inherited from interface akka.http.impl.util.ValueRenderable
value
-
-
-
-
Method Detail
-
apply
public static HttpChallenge apply(java.lang.String scheme, scala.Option<java.lang.String> realm)
-
apply
public static HttpChallenge apply(java.lang.String scheme, scala.Option<java.lang.String> realm, scala.collection.immutable.Map<java.lang.String,java.lang.String> params)
-
toString
public static java.lang.String toString()
-
scheme
public java.lang.String scheme()
- Specified by:
scheme
in classHttpChallenge
-
realm
public java.lang.String realm()
- Specified by:
realm
in classHttpChallenge
-
params
public scala.collection.immutable.Map<java.lang.String,java.lang.String> params()
-
render
public <R extends Rendering> Rendering render(R r)
- Specified by:
render
in interfaceRenderable
-
getParams
public java.util.Map<java.lang.String,java.lang.String> getParams()
Java API- Specified by:
getParams
in classHttpChallenge
-
-