-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
763 additions
and
515 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
web/src/main/java/com/navercorp/pinpoint/web/hyperlink/DefaultLinkSource.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.navercorp.pinpoint.web.hyperlink; | ||
|
||
|
||
public class DefaultLinkSource implements LinkSource { | ||
private final String hostName; | ||
private final String ip; | ||
|
||
|
||
public DefaultLinkSource(String hostName, String ip) { | ||
this.hostName = hostName; | ||
this.ip = ip; | ||
} | ||
|
||
@Override | ||
public String getHostName() { | ||
return hostName; | ||
} | ||
|
||
@Override | ||
public String getIp() { | ||
return ip; | ||
} | ||
} |
66 changes: 31 additions & 35 deletions
66
...licationmap/link/DefaultMatcherGroup.java → ...nt/web/hyperlink/DefaultMatcherGroup.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,32 @@ | ||
/* | ||
* Copyright 2014 NAVER Corp. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.navercorp.pinpoint.web.applicationmap.link; | ||
|
||
/** | ||
* @author minwoo.jung | ||
*/ | ||
public class DefaultMatcherGroup extends MatcherGroup { | ||
|
||
public boolean ismatchingType(Object value) { | ||
if (value instanceof String) { | ||
return true; | ||
} | ||
|
||
return false; | ||
} | ||
|
||
@Override | ||
protected String getMatchingSource(Object data) { | ||
return (String)data; | ||
} | ||
/* | ||
* Copyright 2014 NAVER Corp. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.navercorp.pinpoint.web.hyperlink; | ||
|
||
/** | ||
* @author minwoo.jung | ||
*/ | ||
public class DefaultMatcherGroup extends MatcherGroup { | ||
|
||
public boolean isMatchingType(LinkSource linkSource) { | ||
return false; | ||
} | ||
|
||
@Override | ||
protected String getMatchingSource(LinkSource linkSource) { | ||
return null; | ||
} | ||
} |
72 changes: 36 additions & 36 deletions
72
...applicationmap/link/EmptyLinkMatcher.java → ...point/web/hyperlink/EmptyLinkMatcher.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
/* | ||
* Copyright 2014 NAVER Corp. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.navercorp.pinpoint.web.applicationmap.link; | ||
|
||
import com.navercorp.pinpoint.web.applicationmap.link.LinkInfo.LinkType; | ||
|
||
/** | ||
* @author minwoo.jung<[email protected]> | ||
* | ||
*/ | ||
public class EmptyLinkMatcher implements ServerMatcher { | ||
|
||
@Override | ||
public boolean isMatched(String value) { | ||
return true; | ||
} | ||
|
||
@Override | ||
public LinkInfo getLinkInfo(String value) { | ||
return new LinkInfo("", "", LinkType.ATAG); | ||
} | ||
|
||
/* | ||
* Copyright 2014 NAVER Corp. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.navercorp.pinpoint.web.hyperlink; | ||
|
||
import com.navercorp.pinpoint.web.hyperlink.HyperLink.LinkType; | ||
|
||
/** | ||
* @author minwoo.jung<[email protected]> | ||
* | ||
*/ | ||
public class EmptyLinkMatcher implements ServerMatcher { | ||
|
||
@Override | ||
public boolean isMatched(String value) { | ||
return true; | ||
} | ||
|
||
@Override | ||
public HyperLink getLinkInfo(String value) { | ||
return new HyperLink("", "", LinkType.ATAG); | ||
} | ||
|
||
} |
Oops, something went wrong.