/** * Unmarshalls the response headers or the json doc in the payload to the * list */ public List<T> unmarshall(JsonUnmarshallerContext context) throws Exception { if (context.isInsideResponseHeader()) { return unmarshallResponseHeaderToList(context); } return unmarshallJsonToList(context); }
public static StringUnmarshaller getInstance() { if (instance == null) instance = new StringUnmarshaller(); return instance; } }
public static IntegerUnmarshaller getInstance() { if (instance == null) instance = new IntegerUnmarshaller(); return instance; } }
public InitiateVaultLockResult unmarshall(JsonUnmarshallerContext context) throws Exception { InitiateVaultLockResult initiateVaultLockResult = new InitiateVaultLockResult(); if (context.isStartOfDocument()) { if (context.getHeader("x-amz-lock-id") != null) { context.setCurrentHeader("x-amz-lock-id"); initiateVaultLockResult.setLockId(context.getUnmarshaller(String.class).unmarshall(context)); } } return initiateVaultLockResult; }
protected boolean handleXmlEvent(QueueConfiguration queueConfig, StaxUnmarshallerContext context, int targetDepth) throws Exception { if (context.testExpression("Queue", targetDepth)) { queueConfig.setQueueARN(StringStaxUnmarshaller.getInstance().unmarshall(context)); return true; } return false; }
@Override protected void registerAdditionalMetadataExpressions(StaxUnmarshallerContext unmarshallerContext) { unmarshallerContext.registerMetadataExpression("ResponseMetadata/BoxUsage", 2, SimpleDBResponseMetadata.BOX_USAGE); }
@Override public String readText() throws IOException { if (isInsideResponseHeader()) { return getHeader(currentHeader); } return readCurrentJsonTokenValue(); }
public static BooleanUnmarshaller getInstance() { if (instance == null) instance = new BooleanUnmarshaller(); return instance; } }
public static FloatUnmarshaller getInstance() { if (instance == null) instance = new FloatUnmarshaller(); return instance; } }
public static ByteUnmarshaller getInstance() { if (instance == null) instance = new ByteUnmarshaller(); return instance; } }
public static DoubleUnmarshaller getInstance() { if (instance == null) instance = new DoubleUnmarshaller(); return instance; } }
public static LongUnmarshaller getInstance() { if (instance == null) instance = new LongUnmarshaller(); return instance; } }
public static DateUnmarshaller getInstance() { if (instance == null) instance = new DateUnmarshaller(); return instance; } }
public static ByteBufferUnmarshaller getInstance() { if (instance == null) instance = new ByteBufferUnmarshaller(); return instance; } }
public static DateStaxUnmarshallerFactory getInstance(String dateFormatType) { return new DateStaxUnmarshallerFactory(dateFormatType); } }
public static DateJsonUnmarshallerFactory getInstance(String dateFormatType) { return new DateJsonUnmarshallerFactory(dateFormatType); } }
public PurchaseProvisionedCapacityResult unmarshall(JsonUnmarshallerContext context) throws Exception { PurchaseProvisionedCapacityResult purchaseProvisionedCapacityResult = new PurchaseProvisionedCapacityResult(); if (context.isStartOfDocument()) { if (context.getHeader("x-amz-capacity-id") != null) { context.setCurrentHeader("x-amz-capacity-id"); purchaseProvisionedCapacityResult.setCapacityId(context.getUnmarshaller(String.class).unmarshall(context)); } } return purchaseProvisionedCapacityResult; }
protected boolean handleXmlEvent(TopicConfiguration topicConfig, StaxUnmarshallerContext context, int targetDepth) throws Exception { if (context.testExpression("Topic", targetDepth)) { topicConfig.setTopicARN(StringStaxUnmarshaller.getInstance().unmarshall(context)); return true; } return false; }
public CreateVaultResult unmarshall(JsonUnmarshallerContext context) throws Exception { CreateVaultResult createVaultResult = new CreateVaultResult(); if (context.isStartOfDocument()) { if (context.getHeader("Location") != null) { context.setCurrentHeader("Location"); createVaultResult.setLocation(context.getUnmarshaller(String.class).unmarshall(context)); } } return createVaultResult; }
public UploadMultipartPartResult unmarshall(JsonUnmarshallerContext context) throws Exception { UploadMultipartPartResult uploadMultipartPartResult = new UploadMultipartPartResult(); if (context.isStartOfDocument()) { if (context.getHeader("x-amz-sha256-tree-hash") != null) { context.setCurrentHeader("x-amz-sha256-tree-hash"); uploadMultipartPartResult.setChecksum(context.getUnmarshaller(String.class).unmarshall(context)); } } return uploadMultipartPartResult; }