public class SecurityGroupHandler extends ParseSax.HandlerForGeneratedRequestWithResult<SecurityGroup>
Modifier and Type | Field and Description |
---|---|
protected SecurityGroup.Builder<?> |
builder |
protected StringBuilder |
currentText |
protected com.google.common.base.Supplier<String> |
defaultRegion |
protected boolean |
inIpPermissions |
protected IpPermissionHandler |
ipPermissionHandler |
protected int |
itemDepth |
protected String |
region |
Constructor and Description |
---|
SecurityGroupHandler(IpPermissionHandler ipPermissionHandler,
com.google.common.base.Supplier<String> defaultRegion) |
Modifier and Type | Method and Description |
---|---|
protected SecurityGroup.Builder<?> |
builder() |
void |
characters(char[] ch,
int start,
int length) |
void |
endElement(String uri,
String name,
String qName) |
protected void |
endItem(String uri,
String name,
String qName) |
SecurityGroup |
getResult() |
ParseSax.HandlerForGeneratedRequestWithResult<SecurityGroup> |
setContext(HttpRequest request) |
void |
startElement(String url,
String name,
String qName,
Attributes attributes) |
getRequest
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
protected final IpPermissionHandler ipPermissionHandler
protected final com.google.common.base.Supplier<String> defaultRegion
protected StringBuilder currentText
protected SecurityGroup.Builder<?> builder
protected boolean inIpPermissions
protected int itemDepth
protected String region
@Inject public SecurityGroupHandler(IpPermissionHandler ipPermissionHandler, com.google.common.base.Supplier<String> defaultRegion)
protected SecurityGroup.Builder<?> builder()
public ParseSax.HandlerForGeneratedRequestWithResult<SecurityGroup> setContext(HttpRequest request)
setContext
in interface InvocationContext<ParseSax.HandlerWithResult<SecurityGroup>>
setContext
in class ParseSax.HandlerForGeneratedRequestWithResult<SecurityGroup>
public SecurityGroup getResult()
getResult
in class ParseSax.HandlerWithResult<SecurityGroup>
public void startElement(String url, String name, String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
public void endElement(String uri, String name, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
SAXException
protected void endItem(String uri, String name, String qName) throws SAXException
SAXException
public void characters(char[] ch, int start, int length)
characters
in interface ContentHandler
characters
in class DefaultHandler
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.