trait MessageBuilder[T <: HttpMessage] extends AnyRef
Provides builder pattern for HTTP message.
- Self Type
- MessageBuilder[T] with T
- Alphabetic
- By Inheritance
- MessageBuilder
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
setAttributes(attributes: Map[String, Any]): T
Creates message with supplied attributes.
Creates message with supplied attributes.
- attributes
message attributes
- returns
new message
- Note
All previous attributes are removed.
-
abstract
def
setBody(body: Entity): T
Creates message with supplied body.
Creates message with supplied body.
- body
message body
- returns
new message
-
abstract
def
setHeaders(headers: Seq[Header]): T
Creates message with supplied headers.
Creates message with supplied headers.
- headers
message headers
- returns
new message
- Note
All previous headers are removed.
-
abstract
def
setStartLine(startLine: T.LineType): T
Creates message with supplied start line.
Creates message with supplied start line.
- startLine
message start line
- returns
new message
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addHeaders(one: Header, more: Header*): T
Creates message with additional headers.
Creates message with additional headers.
- one
message header
- more
additional message headers
- returns
new message
-
def
addHeaders(headers: Seq[Header]): T
Creates message with additional headers.
Creates message with additional headers.
- headers
message headers
- returns
new message
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
putAttributes(one: (String, Any), more: (String, Any)*): T
Creates message with supplied attributes.
Creates message with supplied attributes.
- one
attribute
- more
additional attribute
- returns
new message
- Note
If attribute already exists, its value is replaced.
-
def
putAttributes(attributes: Map[String, Any]): T
Creates message with supplied attribute.
Creates message with supplied attribute.
- attributes
attributes
- returns
new message
- Note
If attribute already exists, its value is replaced.
-
def
putHeaders(one: Header, more: Header*): T
Creates message with supplied headers.
Creates message with supplied headers.
- one
header
- more
additional headers
- returns
new message
- Note
All previous headers with same name are removed.
-
def
putHeaders(headers: Seq[Header]): T
Creates message with supplied headers.
Creates message with supplied headers.
- headers
message headers
- returns
new message
- Note
All previous headers with same name are removed.
-
def
removeAttributes(one: String, more: String*): T
Creates message excluding attributes with given names.
Creates message excluding attributes with given names.
- one
attribute name
- more
additional attribute names
- returns
new message
-
def
removeAttributes(names: Seq[String]): T
Creates message excluding attributes with given names.
Creates message excluding attributes with given names.
- names
attribute names
- returns
new message
-
def
removeHeaders(one: String, more: String*): T
Creates message excluding headers with given names.
Creates message excluding headers with given names.
- one
header name
- more
additional header names
- returns
new message
-
def
removeHeaders(names: Seq[String]): T
Creates message excluding headers with given names.
Creates message excluding headers with given names.
- names
header names
- returns
new message
-
def
setAttributes(one: (String, Any), more: (String, Any)*): T
Creates message with supplied attributes.
Creates message with supplied attributes.
- one
message attribute
- more
additional message attributes
- returns
new message
- Note
All previous attributes are removed.
-
def
setHeaders(one: Header, more: Header*): T
Creates message with supplied headers.
Creates message with supplied headers.
- one
message header
- more
additional message headers
- returns
new message
- Note
All previous headers are removed.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
Provided herein is API documentation for Scamper, the HTTP library for Scala.