Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented "NotChangedException" when detecting that no response is …
…required #77
- Loading branch information
Showing
18 changed files
with
161 additions
and
94 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
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
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
30 changes: 30 additions & 0 deletions
30
agent/core/src/main/java/org/jolokia/backend/executor/NotChangedException.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,30 @@ | ||
package org.jolokia.backend.executor; | ||
|
||
import org.jolokia.request.JmxRequest; | ||
|
||
/** | ||
* Exception thrown when an <code>ifModifiedSince</code> parameter was given and | ||
* the requested resourced doesnt has changed | ||
* @author roland | ||
* @since 07.03.13 | ||
*/ | ||
public class NotChangedException extends Exception { | ||
|
||
private JmxRequest request; | ||
|
||
/** | ||
* Constructor | ||
* @param pRequest which lead to this exception | ||
*/ | ||
public NotChangedException(JmxRequest pRequest) { | ||
request = pRequest; | ||
} | ||
|
||
/** | ||
* Request which lead to this exception | ||
* @return request | ||
*/ | ||
public JmxRequest getRequest() { | ||
return request; | ||
} | ||
} |
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
Oops, something went wrong.