All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jolokia.roo.JolokiaCommands.class Maven / Gradle / Ivy

????1
org/jolokia/roo/JolokiaCommandsjava/lang/Object+org/springframework/roo/shell/CommandMarkerJolokiaCommands.java,Lorg/apache/felix/scr/annotations/Component;*Lorg/apache/felix/scr/annotations/Service;()V
this!Lorg/jolokia/roo/JolokiaCommands;isJolokiaAvailable()Z8Lorg/springframework/roo/shell/CliAvailabilityIndicator;value
jolokia setup	#1org/springframework/roo/project/ProjectOperations%getFocusedModuleName()Ljava/lang/String;'(&)	+/org/springframework/roo/project/ProjectMetadata-getProjectIdentifier&(Ljava/lang/String;)Ljava/lang/String;/0
.10org/springframework/roo/metadata/MetadataService3getC(Ljava/lang/String;)Lorg/springframework/roo/metadata/MetadataItem;5647	9	;$org/springframework/roo/project/Path=SRC_MAIN_WEBAPP&Lorg/springframework/roo/project/Path;?@	>AgetModulePathIdA(Ljava/lang/String;)Lorg/springframework/roo/project/LogicalPath;CD
>E/WEB-INF/web.xmlG,org/springframework/roo/project/PathResolverI
getIdentifierS(Lorg/springframework/roo/project/LogicalPath;Ljava/lang/String;)Ljava/lang/String;KLJM3org/springframework/roo/process/manager/FileManagerOexists(Ljava/lang/String;)ZQRPSmoduleLjava/lang/String;project1Lorg/springframework/roo/project/ProjectMetadata;setupJolokia9(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V*Lorg/springframework/roo/shell/CliCommand;helpRAdds/Updates dependencies and a servlet "/jolokia" for accessing the Jolokia agent)Lorg/springframework/roo/shell/CliOption;key	addPolicy	mandatoryspecifiedDefaultValuetrueunspecifiedDefaultValuefalse%Add a sample access policy descriptor
addJsr60Proxy/Setup agent for handling JSR-160 proxy requestsaddDefaultInitParamsCAdd init parameters with the default values for the Jolokia-ServletgetClass()Ljava/lang/Class;lm
n-org/springframework/roo/support/util/XmlUtilspgetConfiguration((Ljava/lang/Class;)Lorg/w3c/dom/Element;rs
qtjava/lang/BooleanvparseBooleanxR
wyupdateDependencies(Lorg/w3c/dom/Element;Z)V{|
}
addRepository(Lorg/w3c/dom/Element;)V?
?updateWebXml(Lorg/w3c/dom/Element;ZZ)V??
?updateJolokiaAccessXml?
?addPolicyDescriptoraddJsr160Proxy
configurationLorg/w3c/dom/Element;./configuration/jolokia/dependencies/dependency?findElements9(Ljava/lang/String;Lorg/w3c/dom/Element;)Ljava/util/List;??
q?addJsr160Dependencies)(Lorg/w3c/dom/Element;Ljava/util/List;Z)V??
?java/util/ArrayList?
?java/util/List?iterator()Ljava/util/Iterator;????java/util/Iterator?hasNext???next()Ljava/lang/Object;????org/w3c/dom/Element?*org/springframework/roo/project/Dependency??
??add(Ljava/lang/Object;)Z????addDependencies+(Ljava/lang/String;Ljava/util/Collection;)V??&?dependencyElementi$Ljava/util/Iterator;pAddJsr160ProxyZdependencyElements'Ljava/util/List;Ljava/util/List;dependencies>Ljava/util/List;-/configuration/jolokia/jsr160Proxy/dependency?addAll(Ljava/util/Collection;)Z????getFocusedModule-()Lorg/springframework/roo/project/maven/Pom;??&?)org/springframework/roo/project/maven/Pom?getDependencies()Ljava/util/Set;??
??
java/util/Set???hasSameCoordinates/(Lorg/springframework/roo/project/Dependency;)Z??
??dep,Lorg/springframework/roo/project/Dependency;	jsr160Depjsr160DepElementpom+Lorg/springframework/roo/project/maven/Pom;pDependencyElementspJsr160DepElements6/configuration/jolokia/dependencies/dependency/version?getTextContent?(??.*SNAPSHOT$?java/lang/String?matches?R
??8/configuration/jolokia/snapshots-repositories/repository?./configuration/jolokia/repositories/repository?*org/springframework/roo/project/Repository?
??
getModuleName?(
??A(Ljava/lang/String;Lorg/springframework/roo/project/Repository;)V?&?version
repository,Lorg/springframework/roo/project/Repository;repositoryElementversions
isSnapshotrepositoriesjava/io/IOExceptionjava/lang/ExceptionWEB-INF/web.xml
updateFileI(Ljava/lang/String;)Lorg/springframework/roo/process/manager/MutableFile;P	3org/springframework/roo/process/manager/MutableFilegetInputStream()Ljava/io/InputStream;
getDocumentBuilder%()Ljavax/xml/parsers/DocumentBuilder;
q!javax/xml/parsers/DocumentBuilderparse-(Ljava/io/InputStream;)Lorg/w3c/dom/Document;
updateServletDefinition/(Lorg/w3c/dom/Element;ZLorg/w3c/dom/Document;)V
updateJsr160Proxy.(Lorg/w3c/dom/Element;Lorg/w3c/dom/Document;)V 
!getOutputStream()Ljava/io/OutputStream;#$%writeXml/(Ljava/io/OutputStream;Lorg/w3c/dom/Document;)V'(
q)java/lang/IllegalStateException+java/lang/StringBuilder-
.Could not acquire 0append-(Ljava/lang/String;)Ljava/lang/StringBuilder;23
.4toString6(
.7(Ljava/lang/String;)V9
,:java/io/InputStream<close>
=?(Ljava/lang/Throwable;)VA
,B
mutableWebXml5Lorg/springframework/roo/process/manager/MutableFile;	webXmlDocLorg/w3c/dom/Document;webXmleLjava/io/IOException;expLjava/lang/Exception;pConfigurationpAddjsr160proxypAdddefaultinitparamsisLjava/io/InputStream;getDefaultParamsV(Lorg/w3c/dom/Element;)[Lorg/springframework/roo/support/util/WebXmlUtils$WebXmlParam;RS
TjolokiaVorg.jolokia.http.AgentServletX
/jolokia/*Zjava/lang/Integer\valueOf(I)Ljava/lang/Integer;^_
]`
Jolokia Agentb
addServlet?(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;Lorg/w3c/dom/Document;Ljava/lang/String;[Lorg/springframework/roo/support/util/WebXmlUtils$WebXmlParam;)Vde

fpAddDefaultInitParams
initParams?[Lorg/springframework/roo/support/util/WebXmlUtils$WebXmlParam;,/configuration/jolokia/initParams/init-paramk
param-namem;(Lorg/w3c/dom/Element;Ljava/lang/String;)Ljava/lang/String;?o
pparam-valuer'(Ljava/lang/String;Ljava/lang/String;)Vt
u
??size()Ixy
?ztoArray(([Ljava/lang/Object;)[Ljava/lang/Object;|}
?~j	initParamretULjava/util/ArrayList;Ljava/util/ArrayList;SRC_MAIN_RESOURCES?@	>?jolokia-access.xml?.org/springframework/roo/support/util/FileUtils?:(Ljava/lang/Class;Ljava/lang/String;)Ljava/io/InputStream;
?
??
createFile?P?org/apache/commons/io/IOUtils?copy.(Ljava/io/InputStream;Ljava/io/OutputStream;)I??
??ioedestinationgetJsr160InitArg?o
?*/web-app/servlet[servlet-name = 'jolokia']?org/w3c/dom/Document?getDocumentElement()Lorg/w3c/dom/Element;????findFirstElement;(Ljava/lang/String;Lorg/w3c/dom/Node;)Lorg/w3c/dom/Element;??
q?"java/lang/IllegalArgumentException?7Internal: No servlet 'jolokia' found in WEB-INF/web.xml?
?:init-param[param-name = '?']?6org/springframework/roo/support/util/XmlElementBuilder?
init-param?+(Ljava/lang/String;Lorg/w3c/dom/Document;)V?
??setTextL(Ljava/lang/String;)Lorg/springframework/roo/support/util/XmlElementBuilder;??
??build??
??addChildL(Lorg/w3c/dom/Node;)Lorg/springframework/roo/support/util/XmlElementBuilder;??
??load-on-startup?insertBefore8(Lorg/w3c/dom/Node;Lorg/w3c/dom/Node;)Lorg/w3c/dom/Node;????appendChild&(Lorg/w3c/dom/Node;)Lorg/w3c/dom/Node;????setTextContent?9??lastElement	paramName
paramValueservlet./configuration/jolokia/jsr160Proxy/init-param/?pWhataddLineBreak=(Lorg/w3c/dom/Node;Lorg/w3c/dom/Node;Lorg/w3c/dom/Document;)V
    ?createTextNode&(Ljava/lang/String;)Lorg/w3c/dom/Text;????org/w3c/dom/Node???pRootElementLorg/w3c/dom/Node;pBeforeThis
pWebXmlDocgetElementsByTagName*(Ljava/lang/String;)Lorg/w3c/dom/NodeList;????org/w3c/dom/NodeList?item(I)Lorg/w3c/dom/Node;??????tagbindProjectOperations6(Lorg/springframework/roo/project/ProjectOperations;)VunbindProjectOperationsbindFileManager8(Lorg/springframework/roo/process/manager/FileManager;)VunbindFileManagerbindPathResolver1(Lorg/springframework/roo/project/PathResolver;)VunbindPathResolverbindMetadataService5(Lorg/springframework/roo/metadata/MetadataService;)VunbindMetadataServiceRuntimeInvisibleAnnotationsCodeLocalVariableTableLineNumberTableRuntimeVisibleAnnotations"RuntimeVisibleParameterAnnotationsLocalVariableTypeTable	Signature@(Lorg/w3c/dom/Element;Ljava/util/List;Z)V
SourceFileInnerClasses!????/*??+?=*?$?*L*?,+?2?8?.M,??*?:*?.??7??^^??Vi?N??Vi?N?????.?L?O???T*?




© 2015 - 2025 Weber Informatics LLC | Privacy Policy