|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gdata.data.AbstractExtension
com.google.gdata.data.ExtensionPoint
com.google.gdata.data.batch.BatchStatus
public class BatchStatus
Entry extension for the element <batch:status>
, which contains
status information returned by the server about how an entry was processed
in a batch operation.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gdata.data.ExtensionPoint |
---|
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler |
Constructor Summary | |
---|---|
BatchStatus()
Creates an empty BatchStatus. |
|
BatchStatus(ServiceException e)
Creates a BatchStatus and initializes it based on an exception. |
Method Summary | |
---|---|
static BatchStatus |
createCreatedStatus()
Creates a Success status object. |
static BatchStatus |
createSuccessStatus()
Creates a 200 Success status object. |
void |
generate(XmlWriter w,
ExtensionProfile extProfile)
Generate an Atom XML representation of the current object. |
int |
getCode()
Returns the HTTP response code for this status. |
java.lang.String |
getContent()
Gets error message. |
ContentType |
getContentType()
Gets mime type for the content of this error. |
static ExtensionDescription |
getDefaultDescription()
Returns the suggested extension description. |
XmlParser.ElementHandler |
getHandler(ExtensionProfile extProfile,
java.lang.String namespace,
java.lang.String localName,
org.xml.sax.Attributes attrs)
Parses XML in the Atom format and uses it to set field values. |
java.lang.String |
getReason()
Returns a short message describing this status. |
void |
setCode(int code)
Sets HTTP response code. |
void |
setContent(java.lang.String content)
Sets error message. |
void |
setContentType(ContentType contentType)
Sets mime type for the content of this error. |
void |
setReason(java.lang.String reason)
Sets a short message describing this status. |
Methods inherited from class com.google.gdata.data.ExtensionPoint |
---|
addExtension, addRepeatingExtension, declareExtensions, generateCumulativeXmlBlob, getExtension, getExtensions, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit |
Methods inherited from class com.google.gdata.data.AbstractExtension |
---|
disableStrictValidation, enableStrictValidation, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, setImmutable |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BatchStatus()
public BatchStatus(ServiceException e)
e
- Method Detail |
---|
public static BatchStatus createSuccessStatus()
public static BatchStatus createCreatedStatus()
public static ExtensionDescription getDefaultDescription()
public int getCode()
getCode
in interface IBatchStatus
public void setCode(int code)
public java.lang.String getReason()
getReason
in interface IBatchStatus
public void setReason(java.lang.String reason)
public ContentType getContentType()
getContentType
in interface IBatchStatus
public void setContentType(ContentType contentType)
public java.lang.String getContent()
getContent
in interface IBatchStatus
public void setContent(java.lang.String content)
public void generate(XmlWriter w, ExtensionProfile extProfile) throws java.io.IOException
generate
in interface Extension
generate
in class AbstractExtension
w
- XML writerextProfile
- extension profile
java.io.IOException
public XmlParser.ElementHandler getHandler(ExtensionProfile extProfile, java.lang.String namespace, java.lang.String localName, org.xml.sax.Attributes attrs) throws ParseException
getHandler
in interface Extension
getHandler
in class ExtensionPoint
extProfile
- namespace
- localName
- attrs
- XML attributes
ParseException
- if the current element is not a valid
batch:atom element
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |