// Ensure that the specified encoding is valid
byte buffer[] = new byte[1];
buffer[0] = (byte) 'a';
- String dummy = new String(buffer, enc);
+ new String(buffer, enc);
// Save the validated encoding
coyoteRequest.setCharacterEncoding(enc);
// Find the local WAR file
File localWar = new File(deployedPath, getDocBase(path) + ".war");
- // Find the local context deployment file (if any)
- File localXml = new File(configBase, getConfigFile(path) + ".xml");
// Check if app already exists, or undeploy it if updating
Context context = (Context) host.findChild(path);
return;
}
- // Identify the appBase of the owning Host of this Context (if any)
- String appBase = null;
- File appBaseDir = null;
- if (context.getParent() instanceof Host) {
- appBase = ((Host) context.getParent()).getAppBase();
- appBaseDir = new File(appBase);
- if (!appBaseDir.isAbsolute()) {
- appBaseDir = new File(System.getProperty("catalina.base"),
- appBase);
- }
- }
-
if (!isDeployed(path)) {
writer.println(sm.getString("managerServlet.notDeployed",
RequestUtil.filter(displayPath)));
*/
private void parseAttributeDirective(Node parent) throws JasperException {
Attributes attrs = parseAttributes();
- Node.AttributeDirective n = new Node.AttributeDirective(attrs, start,
- parent);
+ new Node.AttributeDirective(attrs, start, parent);
}
/*
*/
private void parseVariableDirective(Node parent) throws JasperException {
Attributes attrs = parseAttributes();
- Node.VariableDirective n = new Node.VariableDirective(attrs, start,
- parent);
+ new Node.VariableDirective(attrs, start, parent);
}
/*
* event to be delivered to this client (Section 4.2.2 of spec).\r
*/\r
public int process(int prevops) throws BayeuxException {\r
- prevops = super.process(prevops);\r
+ super.process(prevops);\r
response = (HashMap<String, Object>)responseTemplate.clone();\r
ClientImpl client = (ClientImpl)getTomcatBayeux().getClient(clientId);\r
boolean success = false;\r
* Disconnect a client session.\r
*/\r
public int process(int prevops) throws BayeuxException {\r
- prevops = super.process(prevops);\r
+ super.process(prevops);\r
response = (HashMap<String, Object>)responseTemplate.clone();\r
ClientImpl client = (ClientImpl)getTomcatBayeux().getClient(clientId);\r
HttpError error = validate();\r
* the Bayuex specification.\r
*/\r
public int process(int prevops) throws BayeuxException {\r
- prevops = super.process(prevops);\r
+ super.process(prevops);\r
response = (HashMap<String, Object>)responseTemplate.clone();\r
ClientImpl client = null;\r
HttpError error = validate();\r
* channels and inverse client to channel reference.\r
*/\r
public int process(int prevops) throws BayeuxException {\r
- prevops = super.process(prevops);\r
+ super.process(prevops);\r
response = (HashMap<String, Object>)this.responseTemplate.clone();\r
ClientImpl client = (ClientImpl)getTomcatBayeux().getClient(clientId);\r
HttpError error = validate();\r
* Bayeux spec, a pattern may be specified. Sever relationships.\r
*/\r
public int process(int prevops) throws BayeuxException {\r
- prevops = super.process(prevops);\r
+ super.process(prevops);\r
response = (HashMap<String, Object>)responseTemplate.clone();\r
ClientImpl client = (ClientImpl)getTomcatBayeux().getClient(clientId);\r
HttpError error = validate();\r
* Send the event message to all registered subscribers.\r
*/\r
public int process(int prevops) throws BayeuxException {\r
- prevops = super.process(prevops);\r
+ super.process(prevops);\r
response = (HashMap<String, Object>)responseTemplate.clone();\r
ClientImpl client = clientId!=null?(ClientImpl)getTomcatBayeux().getClient(clientId):\r
(ClientImpl)event.getHttpServletRequest().getAttribute("client");\r
"Method name is null");
if( log.isDebugEnabled()) log.debug("Invoke " + name);
- MethodKey mkey = new MethodKey(name, signature);
+
Method method= managedBean.getInvoke(name, params, signature, this, resource);
// Invoke the selected method on the appropriate object