Package us.codecraft.webmagic
Class ResultItems
- java.lang.Object
-
- us.codecraft.webmagic.ResultItems
-
-
Constructor Summary
Constructors Constructor Description ResultItems()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
get(java.lang.String key)
java.util.Map<java.lang.String,java.lang.Object>
getAll()
Request
getRequest()
boolean
isSkip()
Whether to skip the result.
Result which is skipped will not be processed by Pipeline.<T> ResultItems
put(java.lang.String key, T value)
ResultItems
setRequest(Request request)
ResultItems
setSkip(boolean skip)
Set whether to skip the result.
Result which is skipped will not be processed by Pipeline.java.lang.String
toString()
-
-
-
Method Detail
-
get
public <T> T get(java.lang.String key)
-
getAll
public java.util.Map<java.lang.String,java.lang.Object> getAll()
-
put
public <T> ResultItems put(java.lang.String key, T value)
-
getRequest
public Request getRequest()
-
setRequest
public ResultItems setRequest(Request request)
-
isSkip
public boolean isSkip()
Whether to skip the result.
Result which is skipped will not be processed by Pipeline.- Returns:
- whether to skip the result
-
setSkip
public ResultItems setSkip(boolean skip)
Set whether to skip the result.
Result which is skipped will not be processed by Pipeline.- Parameters:
skip
- whether to skip the result- Returns:
- this
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-