public class PropertiesCommand extends Object
JESTCommand.Format
Modifier and Type | Field and Description |
---|---|
protected JPAServletContext |
_ctx |
protected ObjectFormatter<?> |
_formatter |
protected static Localizer |
_loc |
static Collection<String> |
EMPTY_LIST |
static char |
EQUAL |
static String |
PATH_SEPARATOR |
Constructor and Description |
---|
PropertiesCommand(JPAServletContext ctx) |
Modifier and Type | Method and Description |
---|---|
protected void |
debug(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
JPAServletContext ctx) |
String |
getArgument(String key)
Get the value of this command's argument of the given name.
|
Map<String,String> |
getArguments()
Get this command's arguments.
|
protected JESTCommand.Format |
getDefaultFormat() |
JPAServletContext |
getExecutionContext()
Get the execution context of this command.
|
String |
getMandatoryArgument(String key) |
protected Collection<String> |
getMandatoryArguments()
Gets the mandatory arguments.
|
protected int |
getMaximumArguments()
Gets the maximum number of arguments excluding the mandatory arguments.
|
protected int |
getMinimumArguments()
Gets the minimum number of arguments excluding the mandatory arguments.
|
ObjectFormatter<?> |
getObjectFormatter() |
String |
getQualifier(String key)
Get the value of this command's qualifier of the given name.
|
Map<String,String> |
getQualifiers()
Get this command's qualifiers.
|
protected Collection<String> |
getValidQualifiers()
Gets the valid qualifiers.
|
boolean |
hasArgument(String key)
Affirm this command contains an argument of the given name.
|
boolean |
hasQualifier(String key)
Affirm this command contains an qualifier of the given name.
|
protected boolean |
isBooleanQualifier(String key) |
void |
parse()
Parses HTTP Request for the qualifier and argument of a command.
|
protected void |
popFetchPlan(boolean finder) |
void |
process()
Process the given request and write the output on to the given response in the given context.
|
protected void |
pushFetchPlan(Object target) |
protected List<OpenJPAStateManager> |
toStateManager(Collection<?> objects) |
protected OpenJPAStateManager |
toStateManager(Object obj) |
protected void |
validate()
Called post-parse to validate this command has requisite qualifiers and arguments.
|
public static final char EQUAL
public static final String PATH_SEPARATOR
public static final Collection<String> EMPTY_LIST
protected ObjectFormatter<?> _formatter
protected final JPAServletContext _ctx
protected static Localizer _loc
public PropertiesCommand(JPAServletContext ctx)
protected int getMaximumArguments()
public void process() throws ProcessingException, IOException
JESTCommand
ProcessingException
IOException
protected JESTCommand.Format getDefaultFormat()
public JPAServletContext getExecutionContext()
JESTCommand
getExecutionContext
in interface JESTCommand
public String getArgument(String key)
JESTCommand
getArgument
in interface JESTCommand
public boolean hasArgument(String key)
JESTCommand
hasArgument
in interface JESTCommand
public Map<String,String> getArguments()
JESTCommand
getArguments
in interface JESTCommand
public String getQualifier(String key)
JESTCommand
getQualifier
in interface JESTCommand
public boolean hasQualifier(String key)
JESTCommand
hasQualifier
in interface JESTCommand
protected boolean isBooleanQualifier(String key)
public Map<String,String> getQualifiers()
JESTCommand
getQualifiers
in interface JESTCommand
public void parse() throws ProcessingException
type
must be mandatory argument for find
command,
or q
for query
. The mandatory arguments, if any, are not captured
in the argument list.
parse
in interface JESTCommand
ProcessingException
protected Collection<String> getMandatoryArguments()
protected int getMinimumArguments()
protected Collection<String> getValidQualifiers()
protected void validate()
public ObjectFormatter<?> getObjectFormatter()
protected OpenJPAStateManager toStateManager(Object obj)
protected List<OpenJPAStateManager> toStateManager(Collection<?> objects)
protected void pushFetchPlan(Object target)
protected void popFetchPlan(boolean finder)
protected void debug(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, JPAServletContext ctx) throws IOException
IOException
Copyright © 2006–2020 Apache Software Foundation. All rights reserved.