Any way to disable the POST on REST consistency?

I use 3.7 consistency with Grizzly to provide a rest interface (according to http://docs.oracle.com/middleware/1212/coherence/COHCG/rest_moddefault.htm#CICDBAAI).

However, I only let gets through the REST interface - no MESSAGES or DELETIONS.

I went through the docs, but could not find a way to disable certain operations. Is there a way to do this?

Thank you

So turns out if I had read the docs a little closer I could have understood it. For anyone else looking for something similar and not wanting to go down the whole route JAA (as detailed here: 7 securing Oracle coherence REST), basically to implement your own custom filters as detailed here: http://docs.oracle.com/middleware/1212/coherence/COHCG/rest_moddefault.htm#CICIFJHG

My query filter for only gets looked a little like this:

import javax.ws.rs.HttpMethod;

import com.sun.jersey.spi.container.ContainerRequest;
import com.sun.jersey.spi.container.ContainerRequestFilter;

public class AllowGetsOnlyRequestFilter implements ContainerRequestFilter {

    @Override
    public ContainerRequest filter(ContainerRequest paramContainerRequest) {
        if (!HttpMethod.GET.equals(paramContainerRequest.getMethod())) {
            //only allow GETs
            throw new  UnsupportedOperationException(String.format("%s not supported. Only %s operations are supported", paramContainerRequest.getMethod(), HttpMethod.GET));
        }
        return paramContainerRequest;
    }

}

Then he wire upward on the method of registerContainerRequestFilters of your class that extends the DefaultResourceConfig

getContainerRequestFilters().add(new AllowGetsOnlyRequestFilter ());

Tags: Fusion Middleware

Similar Questions

  • Any way to disable the cache Orchestrator?

    Hello everyone,

    We are faced with a few inconsistencies while working with workflows and vcloud Director web console at the same time, especially when you have to choose the entries at the beginning of the workflow.

    Any chance to disable the cache?

    Thank you

    Luciano

    What version of the plugin vCloud do you use? 1.5 or 5.1?

    There is no way to turn it off, but in 5.1, you can change the time-out period. If you put a short that you will get close to real time, but then he may have a performance impact.

    Christophe.

  • any way to disable the bank number when you reset program change?

    Hello

    I do not use bank number and wish to turn it off. whenever I'm doing a "reset change program number" he takes by default with the number of Bank B1

    is he way leave the bank number unchecked so that he won't be back on?

    Thank you

    Uncheck the box 'Bank Select' in the attributes of each patch.  You can select several patches at once by shift or command-selection... you cannot select several patches that span sets.  If you use several games in your concert, simply select all the patches in a set and change the attributes of patch for this entire selection, then select all patches in the next set and do the same thing and so forth.  See my screenshot below my tasks are numbered with P1, P2, etc. without bank numbers.

  • When Adobe or Microsoft will provide a way to disable the debugger with integrated flash player

    I have a problem I've noticed a lot of people have that running windows 8, 8.1, and 10 with the embedded version of Flash Player (called Shockwave Flash lens on my system).  This has to do with the version of debugging that is automatically installed with windows 8.1.  There are many developers who love and use the debugger, but there are many of us, users who don't and we cause anxiety and frustration.  He is currently doesn't seem to be a way to disable the debugger which translates as us users to get windows with different error codes that indicates an error Script of action has occurred.  This happens quite often, and even if it can be closed by clicking the ignore, it is aggravating and frustrating to have this pop up window at all.  I'm not a developer and do not use the debugger and dislike not being able to disable this feature on my PC.  Microsoft or Adobe will fix this problem and propose a solution for us?

    Hi Bill,

    Please ttry the following:

    • Make a right click Start Menu button in the lower-left-> programs and features
    • Click View Installed Updates in the left upper corner of the window
    • Locate the debugger for Internet Explorer Flash Player for Windows 8.1 in the list
    • If she is there-> to highlight and click Uninstall
    • You will be asked to reboot, and Flash Player should be uninstalled once it is complete
    • After the reboot, launch IE and go to https://helpx.adobe.com/flash-player.html and click on the check now button
    • What version of Flash Player is installed?

    If he still has the 19.0.0.207 or "debugger for Internet Flash Player for Windows 8.1 did not appear in the 'View' list updates installed, please try to clear the browser cache (I don't think it's a matter of caching, but it's worth a try):

    • Right click the Start Menu button in the bottom left-> Control Panel
    • Select Internet Options
    • in the general tab, go to the browsing history section and click the delete... button
    • In the remove history window:
      • Uncheck the first item on the list "Web site data preserve Favorites" (having this check mark element isn't just erase).
      • Check the following "files temporary Internet and Web site files", "Cookies and Web site data.
      • Click the Remove button
    • After clearing the cache, go to https://helpx.adobe.com/flash-player.html and click the check now button.
    • What version of Flash Player is installed?

    Please post the results of these two.

    We have this scope within our contact at Microsoft.  I'll make the results for them.

    Thank you.

    --

    Maria

  • Is there a way to disable the cost center column in the layout pay TC

    Hi Heroes,

    Is there a way to disable the center column of cost in terms of payroll time sheet?

    and how do I add the Details column also so a comment can be added for each item a day

    Thanks in advance.

    Published by: user8331446 on January 12, 2009 17:17

    I'm not a technical guy either! It is how to configure the self-service score card. It seems unusual, but this is the method of support.

    In fact, it is not as technical as it seems. You will need some technical assistance (e.g., s/n), but only to recover and then download the ldt.

    You will need recover the such appropriate LDT file specified in the file table in the document that I've referenced.
    You can then open it with any text editor (such as wordpad or Notepad).

    Here is an example of the type of text you will see (using for example cost center):

    BEGIN HXC_LAYOUT_COMPONENTS 'XXCU Exception Timecard Layout - cost center'
    OWNER = 'ORACLE '.
    COMPONENT_VALUE = "COSTCENTER.
    REGION_CODE = "HXC_CUI_TIMECARD."
    REGION_CODE_APP_SHORT_NAME = "HXC".
    ATTRIBUTE_CODE = 'HXC_TIMECARD_COST_CENTER '.
    ATTRIBUTE_CODE_APP_SHORT_NAME = "HXC".
    SEQUENCE = "210".
    COMPONENT_DEFINITION = "CHOICE_LIST".
    RENDER_TYPE = 'WEB '.
    PARENT_COMPONENT =
    * "' Exception Timecard Layout - day laid Building blocks for matrix worker scorecard" * "
    LAST_UPDATE_DATE = ' 23/05/2004.

    BEGIN HXC_LAYOUT_COMP_QUALIFIERS 'XXCU Exception Timecard Layout - cost center'
    OWNER = 'ORACLE '.
    QUALIFIER_ATTRIBUTE_CATEGORY = "CHOICE_LIST".
    QUALIFIER_ATTRIBUTE1 = "Custom9VO".
    QUALIFIER_ATTRIBUTE4 = "N".
    QUALIFIER_ATTRIBUTE8 = "DisplayValue".
    QUALIFIER_ATTRIBUTE9 = '#NUMBER value '.
    QUALIFIER_ATTRIBUTE10 =
    * "Oracle.apps.HxC.selfservice.Timecard.Server.Custom9VO" *.
    QUALIFIER_ATTRIBUTE11 = "TIMECARD_BIND_END_DATE" TIMECARD_BIND_END_DATE ".
    QUALIFIER_ATTRIBUTE17 = "OraTableCellText".
    QUALIFIER_ATTRIBUTE20 = "N".
    QUALIFIER_ATTRIBUTE21 = 'Y '.
    QUALIFIER_ATTRIBUTE22 = 'L '.
    QUALIFIER_ATTRIBUTE25 = "FLEX".
    QUALIFIER_ATTRIBUTE26 = "Dummy economic context."
    QUALIFIER_ATTRIBUTE27 = "Attribut3".
    LAST_UPDATE_DATE = ' 23/05/2004.
    END HXC_LAYOUT_COMP_QUALIFIERS

    END HXC_LAYOUT_COMPONENTS

    To delete this article, just comment it by putting "#" (hash space) in front of each line between HXC_LAYOUT_COMPONENTS BEGIN and END HXC_LAYOUT_COMPONENTS

    Then save your file and get the DBA to uplaod again.

    You must make sure that filename ldt so the section at the top of the file with the entry
    BEGIN HXC_LAYOUTS "XXCU TIM EXCEPTION-SCORE CARD" "HXC".
    OWNER = 'ORACLE '.
    DISPLAY_LAYOUT_NAME = "XXCU Tim Exception Layout - time sheet entry Page"

    have a unique name. You will see that my example has 'TIM' in the name of layout and display name.

    Make you the ldt file name unique so that it does not replace the Oracle version seeded and you're doing the DISPLAY_NAME and LAYOUT_NAME usinque because that's what you will see in your list of page layouts in the preferences in OTL. If you do not change the names, you will see duplicates and won't know which is yours!

    It's about as technical as it gets.

    Good luck. I hope that answers the question further.

    Concerning

    Tim

  • Is there a way to disable the function where firefox opens a new tab when you scroll a click in the header bar?

    Is there a way to disable the function where firefox opens a new tab when you scroll a click in the header bar? This feature in conflict with my program of multiple monitors (display fusion) since this program allows you to change your current active window the monitor 1 monitor 2 and vice versa BY clicking the header of BAR SCROLLING (or whatever you call the highest part of your window). With firefox, I can't easily change my active window between monitors because instead, it opens a new tab.

    If the window is maximized, you can then switch this pref to disable the display of the tabs in the title bar:

    • browser.tabs.drawInTitlebar = false

    You can open the topic: config page via the address bar.
    You can accept the warning and click on "I'll be careful" to continue.

  • Any way to change the screen, keyboard split in OS9.2 version? I hate it

    Any way to change the screen, keyboard split in OS9.2 version? I hate it

    Split keyboard is purely optional. You probably activated by accident.

    Settings > general > keyboard > turn off the keyboard Split option, so it does not happen.

  • When I zoomed in on a website, the other tabs with the same zoom area too; is there a way to disable the page Web site global zoom?

    When I zoomed in on a website, the other tabs with the same zoom area too; is there a way to disable the page Web site global zoom?

    You can change the zoom to be specific tab instead of in-situ.

    (1) in a new tab, type or paste Subject: config in the address bar and press ENTER. Click on the button promising to be careful.

    (2) in the filter box, type or paste the zoom and make a pause so that the list is filtered

    (3) double-click the preference browser.zoom.siteSpecific from true to false.

  • Is in any way to 'force' the NB of 550 to 1024 x 768 resolution

    Hello

    Is any way to 'force' the resolution on the NB of 550 to 1024 x 768, Winbdows 8 can take place on this issue? There are some hacks around other netbooks, but I couldn't find anything for the netbook from Toshiba.

    Hello

    In my opinion this is not possible because the internal LCD display supports a maximum resolution of 1024 x 600
    This isn't a matter of driver graphics card or software but it s a hardware limitation of the display internal.

  • Is there a way to disable the incognito in safari? I would like to be able to easily see site visit my children - even if it's in my account, not just them.

    Is there a way to disable the incognito in safari? I would like to be able to see all of this Web site my children visit their account and in mine.

    The only way I could find requires a hack, and I would never recommend people do.  You never know what could go wrong if you do, and there is sometimes no way to go back or cancel the hack without having to reinstall the operating system, as Safari can not be uninstalled.

  • Whenever I open iphoto 09 (8.1.2), it makes advertising ilife 11. However I can't find any way to do the upgrade.

    Everytime I open iphoto 09 (8.1.2), he announced the upgrade to ilife 11. However I can't find any way to do the upgrade. I don't think that this computer can handle the upgrade to yosemit and photos. I'm operating a white macbook memory 1.5 GB with osX 10.7.5. IPhoto has apparently been abandoned for the photo. But where does that leave us with older equipment?

    If you don't want to or cannot run El Capitan on your Mac, buy a DVD of iLife 11 from a source like Amazon or eBay.

    (140098)

  • No way to disable the touchpad on Satellite L450D - 11 X

    I had my laptop Satellite L450D - 11 X, pre-installed with Windows 7 64-bit, since November and that you come to learn about the function key to turn off the touchpad - a very desirable feature. Unfortunately, pressing the combination of keys Fn + F9 does not work. There is a question answered - now closed - in this forum that advises to restore the laptop to its original configuration to address this problem, which I guess means running a HARD drive recovery procedure and restore the application software - not a trivial task. I took a chance and downloaded and installed the driver for the TouchPad Synaptics Windows 7 x 64. He has a facility to disable the touchpad in the mouse properties window, that works.

    I became aware of the ability to disable the touchpad keys during the installation of new Acer laptop from a friend, who has a button next to the touchpad to market. Come the day where all laptop has such a change a lot of laptop users will be happy, judging by the number of people, I fell on the web looking for a way to disable the touchpad keys, especially when entering.

    I would prefer if the L450D key combination worked, however. Does anyone know how to do this without a HARD drive recovery? Some of my other function keys are also "broken." Not vital, but I don't hate things that don't work as specified.

    What you need to do is to reinstall the package of added value. You can find it on the download page of Toshiba. This package contains several tools and one of them is utility (command buttons FN) flash cards. Remove VAP preinstalled system, restart your computer and install the latest version of the Toshiba support page.

    To say, this little button is also available on some models of Toshiba. If I remember well, it must be available on A500 and U500. Maybe also on some other new models of laptops.

  • Any way to stop the shuffle mode in iTunes from the iPhone 5?

    Any way to stop the shuffle mode in iTunes from the iPhone 5?

    If you listen to a single artist, or whatever song you can listen, bring this song to full screen, so you can see all the controls. At the bottom of the page, to the left side, you will see two icons that contain arrows. The first has the crossed arrows, and the second shows their type of verse in a circle. If you press them, then get highlighted, which means they are on. Shuffle is the first left, and then repeat is the second. Tap it to make sure it is off (not highlight).

  • The screen of my computer no longer turns. It is supposed to run it any way, I flip the screen, I can not understand how to solve this problem

    The screen of my computer no longer turns. It is supposed to run it any way, I flip the screen, I can not understand how to solve this problem. I guess a child (best case scenario) or my husband (worst case) have been involved in this. But it drives me crazy. Any ideas on how to get that back in action?

    Hello

    What is the brand and model of the computer?

    Were there recent changes made on the computer before the show?

    This issue could be due to corrupted graphics cards drivers. I suggest you to update the latest version of the drivers of graphics from the manufacturer's Web site and check if it helps.

    http://Windows.Microsoft.com/en-us/Windows-8/get-best-display-monitor

    Thank you.

  • Is there a way to disable the controls to change fonts

    Is there a way to disable the controls to change the fonts, patterns and other elements of color like that? I work with kids that I need to make them practice their typing but they are more interested in changes all these features they don't type. THX

    Hello OTMarty,

    Thank you for visiting the Microsoft answers community.

    What version of XP are you using? If you use professional or higher, you can use gpedit.msc to deactivate access to view, however you will lose access to it in all accounts except if you select a second time to make changes.

    Your administor account using:

    -Click on Start
       
    -Click on Run
    -Type gpedit.msc
       
    - -Click OK

    Group Policy Editor opens

    In the left pane, click User Configuration .
    From the right pane double-click Administrative Templates, double-click Control Panel

    - , Double-click Hide specified control panel applets
       
    -Select the radio Enable button
    -In the window below and click Show , and the POPs Show content
    -Click Add on the right and Add a window
    - Display type, and then click OK
       
    -Click OK again
    -Close the Group Policy Editor

    Display is now disabled. However, remember to turn off your policy when you change your display properties, and then turn on again in the Group Policy Editor.

    Hope this helps Chris.H
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

Maybe you are looking for